Thisislegal.com
:[ Offline ]:

welcome, please log-in:




 Remember Me  ?
About: Remember Me
Ticking this box will make the site remember you for 24 hours. However, each time you visit the site this time is renewed, so if you are a regular visitor you will stay logged in.


Register An Account
Forgot Password?

:[ Forums ]:
Latest Post In:
Challenge Help
Topic:
Challenge 5
By:
Tiffyish
:[ Like ]:
:[ Alexa ]:
 
:[ Forums ]:
 Thisislegal ForumsHelp → Help with PHP fusking anyone?

Topic: Help with PHP fusking anyone?
Pages:
1
2
3
  Author:  Message:
xyberz09
Offline
Forum Rank: Contributor
rankrankrank
avatar
Posts: 50
Thanks: 9
Contributor
  Users email address is on profile page
thank
If you could write it, that'd really helpful. I'm new to PHP and I looked around for some tutorials on cURL and wget to see if it could be solved using that. I'm convinced cURL can get the job done and I'm gonna try and make my own script but I'm not really sure if I'll get it right.

If I do, I'll share it here for sure.
  #6   Back To Top
xyberz09
Offline
Forum Rank: Contributor
rankrankrank
avatar
Posts: 50
Thanks: 9
Contributor
  Users email address is on profile page
thank
Hi, I think I've successfully created an early version of my fusker script. Here's the code that the script will exploit:

Filename: test.php
Code:
  #7   Back To Top
xyberz09
Offline
Forum Rank: Contributor
rankrankrank
avatar
Posts: 50
Thanks: 9
Contributor
  Users email address is on profile page
thank
Here's the code for my fusker script:

Filename: fusker.php
Code:
  #8   Back To Top
xyberz09
Offline
Forum Rank: Contributor
rankrankrank
avatar
Posts: 50
Thanks: 9
Contributor
  Users email address is on profile page
thank
This is how it works (for anyone who's interested):

You need to setup a web server and configure a virtual host
so that it can host two sites at once
(it's very easy to do that using WAMP)
(more info here:
http://www.eggheadcafe.com/tutorials/aspnet/05de3a63-7a96-4e65-94d9-c090896290e8/creating-multiple-virtual-sites-on-a-wamp-server-installation.aspx)

The target site must run in "c:\wamp\www\target\test.php"

The fusker site is hosted at "c:\wamp\www\fusker.php"

After the virtual hosts are properly set up, typing http://localhost/fusker.php should show the PHP fusker page.

And typing http://localhost:82/test.php should show the target site (to one that's to be fusked)

Now the target page shows different images to the user using this format: http://localhost:82/test.php?file=FILENAME&index=INDEX_NUMBER

FILENAME will be concatenated with INDEX_NUMBER and the result is added the '.jpg' extension and loaded from the site's root dir. If the file doesn't exist, no image will be shown.

If either FILENAME or INDEX_NUMBER values are missing, a default picture (hardcoded as 'default00.jpg' will be shown)
  #9   Back To Top
xyberz09
Offline
Forum Rank: Contributor
rankrankrank
avatar
Posts: 50
Thanks: 9
Contributor
  Users email address is on profile page
thank
Here's how the fusker page works:

To fusk the target PHP page, visit http://localhost/fusker.php
(this automatically fusks images 1-24 from the target site. The names of the images are hardcoded as Picture1, Picture2, Picture3, etc. This can easily be changed)

A range of the pictures to be fusked can be specified by the 'start' and 'end' parameters in this way:

http://localhost/fusker.php?start=5&end=19

There is some basic error checking to see that 'end' is never less that 'start' and that 'start' is always a positive value or 0.
  #10   Back To Top
Pages:
2

Locked.



Online (last 15 mins): metallover

DareYourMind   WeChall.net   Thenetsend.info   Powered by CloudFlare   Download Firefox   Opera Web Browser
Valid XHTML 1.0 Transitional
Home | Challenges | Forums | Contact | About (Disclaimer)
Copyright © 2007-12 Thisislegal.com, All Rights Reserved.


:[ ShoutBox ]:
Guest - Login to post comments


shoutbox bot:
no more proxy
iS33stars:
It helps if you read the tutorials before you attempt a challenge.
howboutdemboyzz:
wheres the proxy they offer?
mejizz420:
uh... i got lucky with the first challenge... dont really get the second challenge..
Nutu2000:
man, what are you doing here if you can't look at the source code of a web page?
adapt760:
whts the pass word for the 1st challenege
zurenarrh:
Nobody really uses the forums :/
Pages: 1, 2...343
Goto:
 
0.306 sec