Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

real 2 code


ghost's Avatar
0 0

Ok, well I am a visual basic programmer, so thats what i chose to use to code the bruteforcer. i managed to make it open every single instance, however at about 200 or so open browsers my cpu starts bugging out on me. I need to find a way to close the non-existent pages while only keeping open the one existing page.

If i could pm someone to take a look at my code and help me write the rest of the loop I would appreciate it, or if you can suggest an easier way using visual basic, I'm all open ears.

Thanks all!:D


ghost's Avatar
0 0

just check the code bank here on HBH for some code…there's a JS one and a PHP one :P


ghost's Avatar
0 0

alright thanks mate, I checked earlier, but i guess ill give it a more thorough look this time…


ghost's Avatar
0 0

yea look for the one that says the ultimate real 2 code


ghost's Avatar
0 0

doy…here's to wasting 3 days trying to write a visual basic code then finding this php code and finishing the challenge in a good 2 mins…lol oh man…


ghost's Avatar
0 0

meh its aight i think i did the same thing felt about like kicking myself after i found the code


ghost's Avatar
0 0

just a note to everyone else, I did it with cURL. WAY easier then probably whatever code you guys used.


ghost's Avatar
0 0

didnt even think of it besides im not any good with cURL


richohealey's Avatar
Python Ninja
0 0

there's no need to use cURL.

also there is a python one in the code bank… BUT how much did you learn when you used a prefab code.

IMo they should remove them from the code bank. have a spider by all means, but not tailored to the chall, at least make people write the nested loops and set they're own variables.

seriously what the fuck is the point of learning to hack if you're learning to run other people's code. i think i may go and puta an exploit in a python one… hmmm remote shell…..


richohealey's Avatar
Python Ninja
0 0

cheers uber0n

i would put a shell in it if it weren't for the fact that it's against the ToS :(

lol cheese wanna make an exception? jk


Uber0n's Avatar
Member
0 0

richohealey wrote: i would put a shell in it if it weren't for the fact that it's against the ToS

Isn't posting challenge solutions also against the ToS?


richohealey's Avatar
Python Ninja
0 0

good point. i'll talk to system about it now

EDIT: DONE


ghost's Avatar
0 0

well im the stubborn type and wanted to do it with visual basic after all, so after i finished it with php i went back to my original code and found a way of checking one by one instead of just lobbing all the sites at you at once…and most likely missing the right one

so if there are any other visual basic users out there, they can pm me for help with the code.

-side note, the visual basic format worked better/faster then the php one for me.


ghost's Avatar
0 0

So why did you do it with php first? That points don't mean anything but how much you learnt from this site..don't be so greedy for points, there's no prize at the end, only the knwledge you got


ghost's Avatar
0 0

Frost_T wrote: well im the stubborn type and wanted to do it with visual basic after all, so after i finished it with php i went back to my original code and found a way of checking one by one instead of just lobbing all the sites at you at once…and most likely missing the right one

so if there are any other visual basic users out there, they can pm me for help with the code.

-side note, the visual basic format worked better/faster then the php one for me.

I did Real 2 using VB, also. I just used the WebBrowser object, imported MSHTML, and ran a loop to browse to each filename (one at a time) and check the source for that "page not found" or whatever shows up. Didn't take long at all to find it. Oh, and if you want to speed it up more, you could just use MSHTML w/o the WebBrowser object, and pull the source directly from the MSHTML document… since you're just navigating to single URLs, MSHTML can handle it alone.

I agree that the source for Real 2 spiders should be removed; I personally enjoyed the learning experience that came with writing my own spider in VB.Net.


ghost's Avatar
0 0

thejas wrote: So why did you do it with php first? That points don't mean anything but how much you learnt from this site..don't be so greedy for points, there's no prize at the end, only the knwledge you got

I had already started it in VB before i used the php. when i got stuck using the VB i came here asking for help, and everyone pointed me to the php example in the code bank…so um i wouldn't call that greedy…just following the help people gave me, no?

@ Zephyr, sounds like it would work(well obviously did, you used it ;)), but i simply used a "system.diagnostics.process.start" with a loop…ended up being about 10 lines of code at the end…and yeah put it in a button click event and thats about it…

p.s. if someone feels i should remove my code, let me know…


ghost's Avatar
0 0

Okay, you used Process.Start to run IE or Firefox… How did you capture the contents of each page programmatically? Or did you manually verify them?


ghost's Avatar
0 0

as you put it, just checked them manually. I set the ontop property of the form to true and as soon as "does not exist" popped up, I just clicked for the next entry. I'd be interested in learning how to automate such applications though, is there any site/article somewhere that you an refer me to?


ghost's Avatar
0 0

Frost_T wrote: as you put it, just checked them manually. I set the ontop property of the form to true and as soon as "does not exist" popped up, I just clicked for the next entry. I'd be interested in learning how to automate such applications though, is there any site/article somewhere that you an refer me to?

Well, you'd have to get a decent understanding of MSHTML…

http://msdn.microsoft.com/workshop/browser/mshtml/reference/reference.asp

…understand the WebBrowser object, and understand how to search strings or string objects (like the MSHTML Document object) for values. Learn about the DOM (Document Object Model) used by websites, and then have a look at:

http://renegademinds.com/Default.aspx?tabid=47

If you truly want to understand it, then that's the way to go. If you want a quick cram and don't really want to understand it, though, just check out the last link.


ghost's Avatar
0 0

thanks mate, I'll buckle down tomorrow and get some reading done.