Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- show_source(__FILE__);
- ?>
- <html>
- <tittle>Can you bypass it?</tittle>
- <from method="post" enctype="multipart/form-data">
- upload: <input type="file" name="p0tz">
- <input type="submit" value="upload" name="upload">
- </form>
- </html>
- <?php
- $upload_dir = "p0tz";
- $info = pathinfo($_FILES['p0tz']['name']);
- $file = getimagesize($_FILES['p0tz']['tmp_name']);
- if(isset($_POST['upload'])) {
- if(($info['extension'] != ("jpg") && ($file['mime'] != "image/jpeg")) {
- print "file .jpg cok !<br>";
- } else {
- if(!$file) {
- print "Are you Sure This is Images? :D<br> I Smell backdoor here Bhahahahaha , you must try harder to bypass it :D<br>";
- } else {
- if(preg_match("/php|phtml|html|txt|aps|x/" , $info['extension'])) {
- die("Are You Sure This Images? :D<br> I smell backdoor here Bhahahahaha , you must try harder to bypass it :D<br>";
- }
- @copy($_FILES['p0tz']['tmp_name'], $upload_dir."/".$_FILES['p0tz']['name']);
- print "(OK) Your File: ".$upload_dir."/".$FILES['p0tz']['name']."<br>";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement