Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    [C++ & PHP] Current Hack Users


    UnknwnC
     Share

    Recommended Posts

    Well,much of ya maybe know this:

    zojl75.png

     

    So i wanted to code it and make all people able to have it.

     

    First of all the C++ Snippet.

    Maybe there's a mistace on the C++ Code,because i wrote it out of head.

    The GetURLPage function ,is made by idk...If some1 know please post for crediting :D

    int GETURLPAGE(char *link, char *buffer, int maxsize)
    {
     HINTERNET hSession;
     HINTERNET hURL;
     DWORD dwBYTEsRead;
     int   ok;
    
     ok=0;
     buffer[0]=0;
     hSession = InternetOpenA("Microsoft Internet Explorer",INTERNET_OPEN_TYPE_PRECONFIG,NULL, NULL, NULL);           // defaults
     if (hSession) {
      hURL = InternetOpenUrlA(  // Make connection to desired page.
                hSession,                        // session handle
                link,                             // URL to access
                NULL, 0, 0, 0);                 // defaults
         if (hURL) {
             // Read page into memory buffer.
             InternetReadFile(
                   hURL,                // handle to URL
                   (LPSTR)buffer,       // pointer to buffer
                   (DWORD)maxsize,      // size of buffer
                   &dwBYTEsRead);       // pointer to var to hold return value
    
             // Close down connections.
             InternetCloseHandle(hURL);
             buffer[dwBYTEsRead]=0;     // end string
             ok=(int)dwBYTEsRead;
         }
    
         InternetCloseHandle(hSession);
     }
     return ok;
    }
    /*FUNCTION STARTS HERE!!*/
    char hash[9999];
    char buffer[MAX_PATH];
    int len;
    char *CurrentUsers;
    char *Counter_URL = { "http://linktoscript.com/folder/name.php" };
    if(GETURLPAGE(hash,buffer,len) !=0)
    {
    sprintf_s( CurrentUsers,buffer);
    }
    

     

     

    PHP Code

    <?php
    require_once("config/config.php");
     $time = time();
     $time2 = strtotime('- 1hours',$time); //Other commands:http://php.net/manual/de/function.strtotime.php
     $ip = $_SERVER['REMOTE_ADDR'];
    
        $cmd1 = "INSERT INTO `counter`(`time`, `ip`) VALUES ('$time','$ip')";
        $cmd = "SELECT * FROM `counter` WHERE 1";
        $cmd2 = "DELETE FROM `counter` WHERE `time` < '$time2'";
        $cmd3 = "DELETE FROM `counter` WHERE `ip` = '$ip'";
    if($result2 = $sql->query($cmd2)){}
    if($result3 = $sql->query($cmd3)){
        $sql->query($cmd1);}
    
    if($result = $sql->query($cmd)){
            echo $result->num_rows;
    }
    ?>
    

    The config file:

    First create a folder on your WebSpace named config and put in it a file named:

    config.php and insert this code with your login for SQL:

    <?php
    $sql = new mysqli("localhost","root","","cheatslaw");//host,user,pass,db
    if($sql->connect_error)
    {
    echo "<b>NO CONNECTION</b>"     ;
    }
    ?>
    

    The SQL Code for PHPMyAdmin:

    -- phpMyAdmin SQL Dump
    -- version 3.4.5
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Erstellungszeit: 25. Mrz 2012 um 23:28
    -- Server Version: 5.5.16
    -- PHP-Version: 5.3.8
    
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    SET time_zone = "+00:00";
    
    
    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8 */;
    
    --
    -- Datenbank: `cheatslaw`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Tabellenstruktur für Tabelle `counter`
    --
    
    CREATE TABLE IF NOT EXISTS `counter` (
     `time` varchar(50) NOT NULL,
     `ip` varchar(50) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    --
    -- Daten für Tabelle `counter`
    --
    
    INSERT INTO `counter` (`time`, `ip`) VALUES
    ('1332710883', '::1');
    
    /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    
    

     

     

    Crediting:

    KingClem for PHP,SQL Commands,GetURL Usage

    Somebody for GETURLPAGE

     

    Enjoy :D

    Edited by UnknwnC
    • Downvote 2
    Link to comment
    Share on other sites

    1 hour delay? a bit much not?

     

    i am using a more accurate online check ( +- 4 minutes )

    Link to comment
    Share on other sites

    On Menu on Menu Load reloading.

    And on WebServer.Well everybody should be able to change.

    And i think 1h is okay.But i can change edit it.

    Edited by UnknwnC
    Link to comment
    Share on other sites

    • 3 years later...
    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...