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

General web-hacking tips & tricks

Well, i'm bored as fuck and I want to be a cool kid, so i'm making this thread.
Here, i'll list some random tips & tricks i've learned from tutorials, books, guides, CTFs, writeups, etc.
This thread will help you if you're new, and probably even if you aren't.
Please excuse any mistakes since English is not my first language.
///////////////////////////////////////////////////////////

1. Getting a full path
Spoiler (Click to View)

///////////////////////////////////////////////////////////

2. Bypassing is_numeric
Spoiler (Click to View)

///////////////////////////////////////////////////////////

3. A lesser known way to exploit LFI
Spoiler (Click to View)

///////////////////////////////////////////////////////////
That's about it for now, because i'm a lazy fuck.
I'll keep adding more to this thread when I feel like it.
Peace.

References & links
Code
Dirbuster - sourceforge.net/projects/dirbuster/
dirb - dirb.sourceforge.net/
YouGetSignal - yougetsignal.com/tools/web-sites-on-web-server/
Fierce.pl - aldeid.com/wiki/Fierce
Knock - github.com/guelfoweb/knock
LFI with PHPInfo - packetstormsecurity.com/files/104825/LFI-With-PHPInfo-Assistance.html
LFI with PHPInfo - insecurety.net/?p=687
Script to exploit the LFI - github.com/D35m0nd142/Kadabra/blob/master/phpinfo.py
There is also a built-in module in fimap for the exploit.
Thanks Man I Just Got some stuff from a website :D
Nice trick for bypassing is_numeric(), hopefully some skiddles can learn a few things by utilizing some of the tips in this tutorial.


(Oct 4, 2015 05:27 AM)Elliotstanleybrown Wrote:  Thanks Man I Just Got some stuff from a website :D

I hope your comment isn't in reference to his tutorials because there is no fucking way you read it & put it to use in 4 minutes.

> Reasons to hate the W&F hacking section on this shit tier forum.
Nice tips and tricks for Beginners.
Nothing new for me but this is very good for those who don't know.
By the way there are lots of functions other than phpinfo for exploiting LFI

Thanks.keep it up.Good work. Waiting for more.
🤝
(Oct 4, 2015 06:30 AM)Aakash_Choudhary Wrote:  Nice tips and tricks for Beginners.
Nothing new for me but this is very good for those who don't know.
By the way there are lots of functions other than phpinfo for exploiting LFI

Thanks.keep it up.Good work. Waiting for more.
🤝

I didn't list all of the ways of exploiting LFI lol.
Most of the time, it's different for every site.
I would like if you also include this site as reference which can help beginners :->

Code
http://stackoverflow.com/questions/3115559/exploitable-php-functions
Thanks
(Oct 4, 2015 07:22 AM)Aakash_Choudhary Wrote:  I would like if you also include this site as reference which can help beginners :->
Thanks

Fuck editing the thread anymore.
I have to use htmlentities to encode "/proc/ self/environ" every time because CF detects it and doesn't let me post.
Another way to find the full path is to load the /etc/p@sswd file and see the users' home directories in hope that the target website's directory will be in there somewhere. And also there are config files you can look in (other than the apache/nginx/whatever configs) that will sometimes have a full path. Furthermore, you left out tampering with the session for FPD. You can insert any illegal characters (usually anything that isn't a letter or number) in your PHPSESSID (or whatever the cookie name is) and it will throw you an error containing the full path if you're lucky.

Also, is_numeric is gay and uncommon, most non-retarded people will use intval() if they know what they're doing.

Other than that, nice thread.
(Oct 4, 2015 09:10 AM)hahdbwoannniabs Wrote:  Another way to find the full path is to load the /etc/p@sswd file and see the users' home directories in hope that the target website's directory will be in there somewhere. And also there are config files you can look in (other than the apache/nginx/whatever configs) that will sometimes have a full path. Furthermore, you left out tampering with the session for FPD. You can insert any illegal characters (usually anything that isn't a letter or number) in your PHPSESSID (or whatever the cookie name is) and it will throw you an error containing the full path if you're lucky.

Also, is_numeric is gay and uncommon, most non-retarded people will use intval() if they know what they're doing.

Other than that, nice thread.

I just felt lazy.
As for the session, you can even just clear it.
Like, remove all of its contents and it will error out.
another few ways to get a fpd is to make the server timeout by sending a massive request, or by using a dork to find any config files the admin might have forgot to delete after setting up the website.
Can you hear my voice
come thru the music?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Aakash_ChoudharyAug 11, 2016 10:11 AM 2 295 Aug 11, 2016 10:11 AM
Last Post: surelyenough
by Root.NoIdentityJul 26, 2016 06:37 PM 2 127 Jul 26, 2016 06:37 PM
Last Post: napsterr
by Byt3DoorNov 16, 2015 07:15 PM 7 368 Nov 16, 2015 07:15 PM
Last Post: dr.franco