Skip to content

Instantly share code, notes, and snippets.

@imhemish
Last active March 25, 2021 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imhemish/890026c48503a8f1054eb29890adc6bc to your computer and use it in GitHub Desktop.
Save imhemish/890026c48503a8f1054eb29890adc6bc to your computer and use it in GitHub Desktop.
saveTextData
<?php
if(isset($_POST['textdata']))
{
$data=$_POST['textdata'];
$fp = fopen('data.txt', 'a');
fwrite($fp, $data);
fclose($fp);
}
?>
# 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