:[ Forums ]:
Topic: Help with PHP fusking anyone?
| Author: | Message: |
| xyberz09 Offline Forum Rank: Contributor ![]() ![]() ![]() Posts: 50 Thanks: 9 Contributor | 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 ![]() ![]() ![]() Posts: 50 Thanks: 9 Contributor | 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 ![]() ![]() ![]() Posts: 50 Thanks: 9 Contributor | Here's the code for my fusker script:
Filename: fusker.php Code: |
| #8 Back To Top | |
| xyberz09 Offline Forum Rank: Contributor ![]() ![]() ![]() Posts: 50 Thanks: 9 Contributor | 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 ![]() ![]() ![]() Posts: 50 Thanks: 9 Contributor | 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 |
Online (last 15 mins): metallover

