 | | 
08-11-2005
|  | Questioning | | Join Date: Aug 2004 Location: denial
Posts: 215
| | | quick question I'm a bit lazy. When cracking passwords, I don't much care to drag a ton of dictionary files around with me, so I wrote a program to generate every possible combination of characters for a password of arbitrary length. I've added logic to only allow passwords that meet Windows complexity requirements to be thrown to the output file to trim the results a bit, but am still having one nagging issue - when the file grows to 2G, my program automatically terminates. I've run into this once before, when my Nessus log file hit 2G, the program would terminate. The solution to that was to rename / compress the log file and move on, but that doesn't exactly help here.
Does anyone know the flag I've got to set if my program is going to create a file > 2G?
Thanks
ps - my environment is FC4, and disk space is not an issue
__________________ Needles in haystacks are less of a problem if you have an electromagnet the size of a Volvo. | 
08-11-2005
|  | Resident Slayer | | | | | Re: quick question In gcc I think you're looking for -D_LARGEFILE_SOURCE, although that should be a no-op on windows which doesn't care about file sizes like *nix does.
Why don'tcha just test as you generate? Are you doing multiple passes for some reason?
Cheers,
Buffy
__________________ "If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!" __________________________________________________ ______________-- Tom Lehrer "The shrinks diagnosed me a sociopath with paranoid delusions. But they’re just out to get me cause I threatened to kill them." Forum Administrator Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here. | 
08-11-2005
|  | Questioning | | Join Date: Aug 2004 Location: denial
Posts: 215
| | | Re: quick question I'd like to use the list with any number of applications on multiple platforms, so I wanted the output to be as raw as possible while still being relevant (not testing 8 zeroes as a password). That, and I've only put a few hours of thought into this little project - eventually, I'll probably make a respectable program of it and pre-hash passwords, add salting options and some cautionary "you're about to generate a petabyte of data, moron" messages - but for now, it's kinda fun to watch my processor scream. | 
08-11-2005
|  | Resident Slayer | | | | | Re: quick question Right, but generating strings on the fly inside the cpu (even if you're doing some fancy algorithms with generating them) is a lot faster than hitting the disk, so if I were building it, I'd just generate and test...very portable and you don't have to worry about disk space, installation issues, file formats, wide chars, etc. etc. etc. You could even put in a flag for ebcdic!
Cheers,
Buffy
__________________ "If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!" __________________________________________________ ______________-- Tom Lehrer "The shrinks diagnosed me a sociopath with paranoid delusions. But they’re just out to get me cause I threatened to kill them." Forum Administrator Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here. | 
08-11-2005
|  | Resident White Hat | | Join Date: Feb 2005 Location: I am nowhere... Yet I am everywhere... All at once!
Posts: 2,270
| | | Re: quick question Why'd you modify it Buffy?
I know all... Quote: |
Originally Posted by Buffy Right, but generating strings on the fly inside the cpu (even if you're doing some fancy algorithms with generating them) is a lot faster than hitting the disk, so if I were building it, I'd just generate and test...very portable and you don't have to worry about disk space, installation issues, file formats, wide chars, etc. etc. etc. You could even put in a flag for ebcdic!
Cheers,
Buffy |
If I were you I would've fixed the speeling airs instead of adding the parenthesized  ...
__________________ Dark Mind ... Hypography Science Forums Never argue with an idiot. They'll drag you down to their level and beat you with experience. -Unknown Don't be such a bitch, I'm a lawyer. -A self help tape in ATHF | 
08-11-2005
|  | Questioning | | Join Date: Aug 2004 Location: denial
Posts: 215
| | | Re: quick question Maybe I'm not understanding... I am generating the strings and testing the complexity requirements in memory before hitting the disk. I don't want to build another cracker, just feed something relevant into one. If I don't hit the disk at all, as far as I know, I'd have to make it a part of an actual cracking app. By 'testing' do you mean the complexity requirements, or actually comparing hashes on the system I'm beating on?
__________________ Needles in haystacks are less of a problem if you have an electromagnet the size of a Volvo. | 
08-11-2005
|  | Resident Slayer | | | | | Re: quick question Quote: |
Originally Posted by Dark Mind If I were you I would've fixed the speeling airs instead of adding the parenthesized  ... | What spelling errors? You mean "ebcdic"? You're too young to know what that is!!!  It was a parenthetical add to clarify for a confused nemo...
Cheers,
Buffy
__________________ "If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!" __________________________________________________ ______________-- Tom Lehrer "The shrinks diagnosed me a sociopath with paranoid delusions. But they’re just out to get me cause I threatened to kill them." Forum Administrator Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here. | 
08-11-2005
|  | Resident Slayer | | | | | Re: quick question Quote: |
Originally Posted by nemo Maybe I'm not understanding... I am generating the strings and testing the complexity requirements in memory before hitting the disk. I don't want to build another cracker, just feed something relevant into one. If I don't hit the disk at all, as far as I know, I'd have to make it a part of an actual cracking app. By 'testing' do you mean the complexity requirements, or actually comparing hashes on the system I'm beating on? | Ah, so you are prepping a standard file format for later reading by a program you don't control. That makes sense then. Of course if the target program used stdin, you could pipe it!
I was thinking you had all the logic in place to generate it. It sounds like you're doing some writing, testing and editing of the files though, right? Otherwise as I say, if you were going to actually do the cracking, and assuming you're doing the generation in one pass with parameters to affect your generation algorithm then not putting them in files is the hot ticket...
Cheers,
Buffy
__________________ "If you do not agree with anything I say, I'll not only retract it, but deny under oath that I ever said it!" __________________________________________________ ______________-- Tom Lehrer "The shrinks diagnosed me a sociopath with paranoid delusions. But they’re just out to get me cause I threatened to kill them." Forum Administrator Hypography Science Forums - Science for Boys and Girls! Its not for nothing that we hang out here. | 
08-11-2005
|  | Resident White Hat | | Join Date: Feb 2005 Location: I am nowhere... Yet I am everywhere... All at once!
Posts: 2,270
| | | Re: quick question
...I NEED to take a programming class, read up on the subject, or SOMETHING. This is complete jargon.
For not understanding much of what is said, I visit this forum far too often  .
__________________ Dark Mind ... Hypography Science Forums Never argue with an idiot. They'll drag you down to their level and beat you with experience. -Unknown Don't be such a bitch, I'm a lawyer. -A self help tape in ATHF | 
08-11-2005
|  | Questioning | | Join Date: Aug 2004 Location: denial
Posts: 215
| | | Re: quick question Quote: |
Originally Posted by Buffy ...if you were going to actually do the cracking, and assuming you're doing the generation in one pass with parameters to affect your generation algorithm then not putting them in files is the hot ticket... | agreed...
I've got some hardware in a lab to play with, if I get some time  I'd like to write a cracker that can actually put four or more processors to good use. For the moment, though, I'm just working on a way to carry around 3K that will turn into ~2G instead of dragging all that data around.
Thanks for the compiler option.
__________________ Needles in haystacks are less of a problem if you have an electromagnet the size of a Volvo. |  | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | » Recent Threads | | | | | | | | | | | | | | | | | | | | | |