Last active
March 25, 2021 08:17
-
-
Save imhemish/890026c48503a8f1054eb29890adc6bc to your computer and use it in GitHub Desktop.
saveTextData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['textdata'])) | |
{ | |
$data=$_POST['textdata']; | |
$fp = fopen('data.txt', 'a'); | |
fwrite($fp, $data); | |
fclose($fp); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace abc with domain | |
import requests | |
import pyupfile | |
import clipboard | |
pyupfile.__main__.main() | |
linkdata = clipboard.paste() | |
data = {"textdata": linkdata} | |
url = "http://abc/save.php" | |
postreq = requests.post(url, data=data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment