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.

B*A*S*I*C*9 PLEASE HELP


ghost's Avatar
0 0

What i have to do? I'm confuse! i've read a lot of articles about %00 but i don't understand how to use it in this mission! Plese give me some hints!


ghost's Avatar
0 0

First, find the directory you're searching (use common sense or the source code). Then find a place where there is an SQL injection vulnerability. From there, you have to use the Poison Null Byte somehow, which I haven't figured out yet. These hints are not spoilers; they can easily be found in the forums and have been repeated many times.


ghost's Avatar
0 0

SlimTim10 wrote: First, find the directory you're searching (use common sense or the source code). Then find a place where there is an SQL injection vulnerability. From there, you have to use the Poison Null Byte somehow, which I haven't figured out yet. These hints are not spoilers; they can easily be found in the forums and have been repeated many times.

Thank you SlimTim10. I've found the directory. My question is : why the search.php find only 2 files of this directory? For example it can't find error_log page and search1.php!! Is the wrong directory that i've found? Also i've inject a sql in login.php that show me a password and a new form to login whit her(this is the same sql injection used for basic 8 and the password is the same!). This from redirect me to a 41.php page that no exist. I don't understand who is the page to apply the poison Null Byte attack. Thanks for the reply but it can't help me however.


ghost's Avatar
0 0

You have to know about html, php, sql injecting and poison null byte attack.

  1. look at the source and find the directory where the form perform the searches; The initial message tell you clearly what is the name of the dir you need. However you can look at the source of the page or google it to find the dir.
  2. Ever look all files and all sources. Find a page that is vulnerable to sql injection attack. Try it injecting a sql how y've done in basic8. The page display a password and a form to put her. Once you find that stop and turn to the start page. Else if you put the displayed password in this form you're redirected to a non existent page(in the wrong track).Ok? If you don't have time to spend once you have foud the sql injection vulnerable page turn to the start page.Let's say that is name is larika.php.
  3. You have now to apply the Poison Null Byte attack to the larika.php page from the start page. How the null byte work? What is it? Read about null byte and you'll easly understand how to use it. Now begins the 2nd part of mission.
  4. If all is right you are redirected to a page that tell you in clear and in the source the username and the password to beat the mission.
  5. Turn in the start page and login with this information.

Thanks everybody that put helps,comments and hints in this forum!!


ghost's Avatar
0 0

I still don't get how to use the PNB. Do you inject it or what?


ghost's Avatar
0 0

i put in the query, like the same as challenge 8, and it directs me to a 41.php page that dosent exist!!!


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

aenman123 wrote: i put in the query, like the same as challenge 8, and it directs me to a 41.php page that dosent exist!!!

THAT'S BECAUSE YOU DON'T INJECT ANYTHING!!!!!!!!!!!!!!!!!!!!!!!!!


ghost's Avatar
0 0

i did the same injection as in challenge 8, it worked and gave me the same password, and then redirected me to a nonexisted page


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

aenman123 wrote: i did the same injection as in challenge 8, it worked and gave me the same password, and then redirected me to a nonexisted page

Did you not read my last post, YOU DON'T INJECT ANYTHING FOR FUCK SAKE!


ghost's Avatar
0 0

WHAT THE FUCK DO I DO THEN? I GOT TO THE PASSWORD SCREEN AND I KNO THAT THE NULL BYTE IS ADDING \0 ON THE THE END OF THE PHP FILE, AND I GET A SHIT LOAD OF ERRORS! WHAT DO I DO THEN?


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

Null Byte is %00 not \0 that's just what it parsers as I think


ghost's Avatar
0 0

WELL I ONLY GET ERRORS IF I DO INDEX.PHP\0 NOT INDEX.PHP%00


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

You can stop with the caps, maybe try not doing index.php as there isn't an index.php in /files/


ghost's Avatar
0 0

i didnt mean oto use the caps, and i tried every file in the files/ directory with that and it says it can find /../../../something


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

PM me with what you're trying