Monday, February 15, 2010
Name change
I have changed the name, of this Blog from Nex6, to Ghost6Shell. I also, have a matching twitter account. for now, the URL will
stay the same in nex6.blogspot.com
-Nex6
Sunday, December 27, 2009
Friday, October 23, 2009
Wednesday, February 04, 2009
the really random password generator (Powershell)
ok,
Here is a powershell script I wrote awhile back. thought Id post it. its a really random password generator:
$pwdlength = [int]
$pwdlength = Read-Host "please provide desired password length"
$bytes = [byte[]][byte]1
$pwd = [string]""
$rng = New-Object System.Security.Cryptography.RNGCryptoServiceProvider
for($i=1;$i -le $pwdlength;$i++)
{
$rng.getbytes($bytes)
$rnd = $bytes[0] -as [int]
$int = ($rnd % 74) + 48
$chr = $int -as [char]
$pwd = $pwd + $chr
}
write $pwd
$pwdlength = Read-Host "please provide desired password length"
$bytes = [byte[]][byte]1
$pwd = [string]""
$rng = New-Object System.Security.Cryptography.RNGCryptoServiceProvider
for($i=1;$i -le $pwdlength;$i++)
{
$rng.getbytes($bytes)
$rnd = $bytes[0] -as [int]
$int = ($rnd % 74) + 48
$chr = $int -as [char]
$pwd = $pwd + $chr
}
write $pwd
enjoy.
maybe later, I will modify it to control special characters. or if someone wants to figure it out, I will repost the code.
-Nex6
using powershell to reslove a host name to IP
ok,
Here is the best part you'll need:
$rs = [System.Net.Dns]::GetHostAddresses($i)|select-object IPAddressToString -expandproperty IPAddressToString
now, I wrote this and tested it using powershell v2 ctp3, and it should work on the Lower versions but have not tested it.
with that line, you will have just an IP address in the var, $rs. from there you can do other things and fancy stuff, all aglore.
the select statement cleans up the output of: [System.Net.Dns]::GetHostAddresses($i) otherwise the output is not really useable as the output is formated in its own colums, with outher propertys. the select-object strips everything out except the IP address.
-Nex6
Tuesday, February 03, 2009
Daemon, by Daniel Suarez
This book, Daemon, is really good. its a techo-thriller and if you like
cyber, and techo types of books this book is one for you.
-Nex6
Saturday, August 09, 2008
basic ruby script
I have been playing with Ruby, thought id post a basic hello world style script....
/code
#!/usr/bin/ruby
print "what do you want to print on screen: "
str = gets
exit if str.nil? or str.empty?
str.chomp!
print "\n"
print str
/end code
-Nexus6
/code
#!/usr/bin/ruby
print "what do you want to print on screen: "
str = gets
exit if str.nil? or str.empty?
str.chomp!
print "\n"
print str
/end code
-Nexus6
Tuesday, August 05, 2008
going forward
Everyone always likes to speculate on the future of IT and computers / tech in general. One thing for sure, there will be changes because. There always is changes, the trick is to stay current and technical enough to have it not matter. weather thats getting a mac, or a linux desktop or if your a mac user getting a windows machine. using all of the different OS's and at least playing with many of the different languages and other objects / items as yo can will help you in the long run.
-Nex6
-Nex6
random bilthering
In the dawn, of the information age indecision and lack of clarity would hamper innovation. The large guilds, would all vi for power and control of that information. The cyberjockys that can
wield it. All of the large guilds, would have there own cyber warriors, each battling each other across the empty space of the NET. With, the mundane users and peoples all plugged into this this massive power.
and, unwittingly the mundane become fodder in this new age.
-Nex6
wield it. All of the large guilds, would have there own cyber warriors, each battling each other across the empty space of the NET. With, the mundane users and peoples all plugged into this this massive power.
and, unwittingly the mundane become fodder in this new age.
-Nex6
Subscribe to:
Posts (Atom)