Results 1 to 7 of 7

Thread: Getting IP from external site

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Quote Originally Posted by Toxys View Post
    Yes I know there is no 100% security, but not everyone look into the codes, etc... so this minimal security will be ok.

    Well I set sv_allowdownload to 0, so the players can download only through http. But since I'm using VPS , my VPS provider can access to the file no matter what I'm doing. So I thinking about I hide a code what I explained before.

    How can I read the file contents from external site with fopen? Can you give me an example please?

    i think better need use methods outside cod2: php, perl, bash etc -> push result from outside into cod2 through "execute" (libcod)

    https://github.com/damage99/libcod/b...r/gsc.cpp#L156
    CoD2:
    PHP Code:
    file_get_contents(url)
    {
        
    url "127.0.1.0/ip.txt"//?arg
        
        
    execute("php /home/scripts/file_get_contents.php " url);
        
    //s = execute("/home/scripts/file_get_contents.php " + url)[0]; ???????????
        
        
    return s;

    PHP file_get_contents.php:
    PHP Code:
    <?php
    die(file_get_contents($argv[1]));
    ?>
    p.s:
    I'm not sure if the VDS provider needs your mod. I'm not at all sure that modern technologies and methods of organizing cloud computing allow them to receive your data (in unencrypted form). I will tell you more, your provider does not even know your password (although it checks it during authorization) - this is how it should be
    Last edited by maxdamage99; 11th November 2020 at 05:51.
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •