Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- declare(strict_types = 1);
- const USERNAME = '??';
- const PASSWORD = '??';
- const DOMAIN = '??';
- $ip = getGlobalIp ();
- require_once ('hhb_.inc.php');
- $hc = new hhb_curl ( '', true );
- $html = $hc->setopt_array ( array (
- CURLOPT_URL => 'https://api.freenom.com/v2/domain/modify',
- CURLOPT_POST => true,
- CURLOPT_CUSTOMREQUEST => 'PUT',
- CURLOPT_POSTFIELDS => http_build_query ( array (
- 'email' => USERNAME,
- 'password' => PASSWORD,
- 'domainname' => DOMAIN,
- 'forward_url' => $ip
- ) )
- ) )->exec ()->getStdOut ();
- var_dump ( $html );
- function getGlobalIp(): string {
- return file_get_contents ( 'https://api.ipify.org/?format=raw' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement