Skip to content

Instantly share code, notes, and snippets.

@Shoyad
Created April 20, 2017 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Shoyad/1905b27c429f0afdef6abdbd7194ca39 to your computer and use it in GitHub Desktop.
Save Shoyad/1905b27c429f0afdef6abdbd7194ca39 to your computer and use it in GitHub Desktop.
<?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);
?>
@xmgr
Copy link

xmgr commented Apr 20, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment