Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Tutorials (http://www.bvlist.com/forumdisplay.php?f=61)
-   -   *phpvpnmod* auto IP address generator mod! (http://www.bvlist.com/showthread.php?t=12579)

BamBam0077 28th August 2022 15:30

*phpvpnmod* auto IP address generator mod!
 
https://images2.imgbox.com/f7/8c/20yLotOI_o.jpg

Code:

function rand_createIPstring( $length ) {
    $chars = "0123456789";
    return substr(str_shuffle($chars),0,$length);
}

function rand_createIP2string( $length ) {
    $chars = "0123456789";
    return substr(str_shuffle($chars),0,$length);
}

function rand_createIP3string( $length ) {
    $chars = "0123456789";
    return substr(str_shuffle($chars),0,$length);
}

function rand_createIP4string( $length ) {
    $chars = "0123456789";
    return substr(str_shuffle($chars),0,$length);
}
//now lets fake the accounts ip address like a vpnguardian
$ipaddr = rand_createIPstring(3); // 333.
$ipaddr2 = rand_createIP2string(3); // 333.333.
$ipaddr3 = rand_createIP3string(3); // 333.333.333.
$ipaddr4 = rand_createIP4string(3); // 333.333.333.333
// ended
echo "$ipaddr.$ipaddr2.$ipaddr3.$ipaddr4";
?>


https://images2.imgbox.com/4f/29/fWq5QT8V_o.jpg

an auto generate IP address mod to use for account-signup / register or for a system_bot user accounts. :wave:


All times are GMT +2. The time now is 15:58.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.