quick question

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 08-11-2005
nemo's Avatar
Questioning

Join Date: Aug 2004
Location: denial
Posts: 215
nemo has a spectacular aura aboutnemo has a spectacular aura aboutnemo has a spectacular aura about
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.
Reply With Quote
  #2 (permalink)  
Old 08-11-2005
Buffy's Avatar
Resident Slayer
Hypography Staff Member
Administrator
3D Championship Golf Champion!
Join Date: Jan 2005
Location: Sunnydale, CA
Posts: 6,657
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
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.
Reply With Quote
  #3 (permalink)  
Old 08-11-2005
nemo's Avatar
Questioning

Join Date: Aug 2004
Location: denial
Posts: 215
nemo has a spectacular aura aboutnemo has a spectacular aura aboutnemo has a spectacular aura about
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.
Reply With Quote
  #4 (permalink)  
Old 08-11-2005
Buffy's Avatar
Resident Slayer
Hypography Staff Member
Administrator
3D Championship Golf Champion!
Join Date: Jan 2005
Location: Sunnydale, CA
Posts: 6,657
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
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.
Reply With Quote
  #5 (permalink)  
Old 08-11-2005
Dark Mind's Avatar
Resident White Hat
Hypography Staff Member
Gallery Curator

Join Date: Feb 2005
Location: I am nowhere... Yet I am everywhere... All at once!
Posts: 2,270
Dark Mind has a spectacular aura aboutDark Mind has a spectacular aura aboutDark Mind has a spectacular aura about
Send a message via ICQ to Dark Mind Send a message via AIM to Dark Mind Send a message via MSN to Dark Mind Send a message via Yahoo to Dark Mind Send a message via Skype™ to Dark Mind
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
Reply With Quote
  #6 (permalink)  
Old 08-11-2005
nemo's Avatar
Questioning

Join Date: Aug 2004
Location: denial
Posts: 215
nemo has a spectacular aura aboutnemo has a spectacular aura aboutnemo has a spectacular aura about
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.
Reply With Quote
  #7 (permalink)  
Old 08-11-2005
Buffy's Avatar
Resident Slayer
Hypography Staff Member
Administrator
3D Championship Golf Champion!
Join Date: Jan 2005
Location: Sunnydale, CA
Posts: 6,657
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
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.
Reply With Quote
  #8 (permalink)  
Old 08-11-2005
Buffy's Avatar
Resident Slayer
Hypography Staff Member
Administrator
3D Championship Golf Champion!
Join Date: Jan 2005
Location: Sunnydale, CA
Posts: 6,657
Buffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond reputeBuffy has a reputation beyond repute
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.
Reply With Quote
  #9 (permalink)  
Old 08-11-2005
Dark Mind's Avatar
Resident White Hat
Hypography Staff Member
Gallery Curator

Join Date: Feb 2005
Location: I am nowhere... Yet I am everywhere... All at once!
Posts: 2,270
Dark Mind has a spectacular aura aboutDark Mind has a spectacular aura aboutDark Mind has a spectacular aura about
Send a message via ICQ to Dark Mind Send a message via AIM to Dark Mind Send a message via MSN to Dark Mind Send a message via Yahoo to Dark Mind Send a message via Skype™ to Dark Mind
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
Reply With Quote
  #10 (permalink)  
Old 08-11-2005
nemo's Avatar
Questioning

Join Date: Aug 2004
Location: denial
Posts: 215
nemo has a spectacular aura aboutnemo has a spectacular aura aboutnemo has a spectacular aura about
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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Specific Relativity/Light-Speed Question EWright Physics and Mathematics 106 08-12-2005
Math question User2983 Physics and Mathematics 1 03-10-2005
Chaos theory question Kelddath Physics and Mathematics 5 12-08-2002

» Current Poll
Favorite James Bond?
Sean Connery - 63.64%
7 Votes
George Lazenby - 0%
0 Votes
David Niven - 9.09%
1 Vote
Roger Moore - 9.09%
1 Vote
Timothy Dalton - 9.09%
1 Vote
Pierce Brosnan - 0%
0 Votes
Daniel Craig - 9.09%
1 Vote
Hate 'em all - 0%
0 Votes
Who's James Bond? - 0%
0 Votes
Total Votes: 11
You may not vote on this poll.

All times are GMT -8. The time now is 06:59 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network