Created
April 20, 2017 07:32
-
-
Save Shoyad/1905b27c429f0afdef6abdbd7194ca39 to your computer and use it in GitHub Desktop.
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 | |
$ch = curl_init("http://turizm.verstka.uz/new.zip"); | |
$fp = fopen("new.zip", "w"); | |
curl_setopt($ch, CURLOPT_FILE, $fp); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_exec($ch); | |
curl_close($ch); | |
fclose($fp); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dude, you know that you just shared your SFTP credentials (in that json file) with everyone? Please be careful on that, your gist is public.
// Edit: these credentials seem to work. Better you change your password asap, everyone can access your whole server from root directory (and over SSH as well).