urandom

Random things go here

urandom

Post by pretentious on Sat Jan 11, 2014 3:11 am
([msg=78844]see urandom[/msg])

while playing around with files in /dev/ i put 2 and 2 together and remembered that linux has a random file which is used for the purpose of generating unlimited psudo random information. So if you're curious or want to impress your technologically challenged mates with a horizontal matrix thing, have a play
Code: Select all
cat /dev/urandom
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country
User avatar
pretentious
Contributor
Contributor
 
Posts: 668
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: urandom

Post by -Ninjex- on Mon Mar 03, 2014 2:19 pm
([msg=79718]see Re: urandom[/msg])

Yes, I am awaking the dead here.
No need in making a whole new thread regarding a similar concept.

This is also a viable option to generate 'random' passwords / salts.

Use the fold -w option to set the length of the password
Use the head -n option to set how many passwords / salts to generate.
Code: Select all
cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?='|fold -w 15| head -n 10| grep -i '[!@#$%^&*()_+{}|:<>?=]'


Example output of 10 passwords at 15 length:

!VQhp<n-s}8^yf1
N{>PrFC@&>gcGYL
hGPdhr<@9wyy+AC
y^_Gb3}xp-Z3MJ@
md<1U!5L?aUMyfb
_CqPYhFgA<:2<^}
70INSc7I&a$I9+9
)EGkfBKl*VoIL^:
P|#Yd{Wf3_DDKZ(
GDysGh!Xo$AP&jV
Last edited by -Ninjex- on Sun Mar 09, 2014 2:13 am, edited 1 time in total.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1353
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: urandom

Post by Goatboy on Sat Mar 08, 2014 7:10 pm
([msg=79782]see Re: urandom[/msg])

-Ninjex- wrote:Yes, I am awaking the dead here.
No need in making a whole new thread regarding a similar concept.

Less than 30 days is hardly reviving an old thread. Just my .02BTC

Also Ninjex, I am a little concerned you are just learning about urandom. Here are some other tricks you might find useful:

'ls' lets you list files
'cd' lets you change directories
'clear' will clear the screen
'cat' followed by a file name will display the contents

Use them responsibly.





Of course I am just giving you shit
Assume that everything I say is or could be a lie.
1UHQ15HqBRZFykqx7mKHpYroxanLjJcUk
User avatar
Goatboy
Expert
Expert
 
Posts: 2823
Joined: Mon Jul 07, 2008 9:35 pm
Blog: View Blog (0)



Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 0 guests