ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ive been trying to do it with vi by running:
/ (slash space enter)
dd
repeatedly, but my wrists are starting to hurt and im only at b i need a better way to remove them... is there a way to run a script repeatedly in vi or something?
EDIT: i can just type slash enter - what a timesaving discovery. im now in the ca's. ive found somehting bad out though. if i type a single d by accident then search ofr the next space, it deletes everything between there and the next space. if i notice i can get a quick u in, but i fear i may have not noticed some. i suppose its not very important.
i did it - i used strings to write a file with all the words on differnet lines (so splitting the phrases up into separate words, then sorted that again, then remvoed all the duplicates. it seems to be ok. lets see how secure my pw is - using the normal password list then incremental, its been running for 3 days now and not found it.
shit its already found my root password - well have to change that...
edit: and my normal - its time to stop using dictionary words... thing is its hard to remember passwords which arent easy to guess...
You can really easily do a global action in vim (not sure about vi). For instance, to delete all lines containing the number 1:
:g/1/:normal dd
Again, as someone mentioned, sed is probably the way to go here though.
Pick a dictionary word at least 6 characters long, 8 is better.
Then do a "cute" substitute:
Replace characters with lookalikes for example:
character 8 for b's
bubble becomes 8u88le
Or use a shift-numeric character like & for the letter G.
bigger become bi&&er
Or put two shorter words together like
EveOdd
Try dumb puns:
EoScene
Adding capital letters helps, too.
If you're on multiple machines, create a good, base password about 5-6 chars long, then append the nodename for each box you log onto. That way you onl have to remember the short base password.
In other words, come up with a way to remember your password so it is never written down or stored anywhere in a file. Plus, don't use regular "dictionary" words, names of your family members or pets.
Actually, there are two basic password attacks: dictionary attacks, and a so-called crypt attack. You understand the dictionary one - a crpyt attack is an attempt to generate a string of characters (randomly chosen) that after a call to crypt, match the hash in /etc/shadow.
Actually, try reading the Shellcoder's Handbook, if you want to see how most systems are exploited.
yeh i kno that - incremental goes thru every possible pw. a-z A-Z 0-9, for each possible length. takes f**king days tho.i should throw in capitals and stuff, but i dont think its that great a risk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.