bug7sec

IDToolkit - Wordpress vulnerability scanner

Aug 27th, 2016
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. function pesan($value){
  4.         echo "[IDTookit] ".$value."\r\n";
  5. }
  6. function idtoolkit(){
  7.     $update = json_decode(file_get_contents("https://bug7sec.github.io/idtoolkit/update.json"),true);
  8.     mkdir("IDTookit");
  9.     foreach ($update['required']['dir'] as $value) {
  10.         pesan("Generate Dir : ".$value);
  11.         mkdir("IDTookit/".$value);
  12.     }
  13.     foreach ($update['required']['file'] as $value) {
  14.         pesan("Download : ".$value);
  15.         file_put_contents("IDTookit/".$value, file_get_contents($update['url'].$value));
  16.     }
  17.     echo "DONE!!";
  18. }
  19. idtoolkit();
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment