Advertisement
Damane-Dz

Open ZTE Ports

Oct 17th, 2014
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. #Coded By DamaneDz
  4. #Change The Virtual Circuit Value To The Right One
  5. #Change The Authorization InFo :)
  6. #Good Luck
  7.  
  8. $virtual_circuit_num="1";
  9. $user="admin";
  10. $pass="admin";
  11. $LoCal_IP="192.168.1.1";
  12.  
  13. $ch = curl_init();
  14. curl_setopt($ch, CURLOPT_URL,"http://192.168.1.1/Forms/adv_nat_dmz_{$virtual_circuit_num}");
  15. curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  16. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  17. curl_setopt($ch, CURLOPT_HTTPHEADER,
  18.             array(
  19.               "Authorization: Basic ".base64_encode("{$user}:{$pass}"))
  20. );
  21. curl_setopt($ch, CURLOPT_POSTFIELDS, "dmz_active={$virtual_circuit_num}&dmzHostIP={$LoCal_IP}");
  22. $result=curl_exec ($ch);
  23. curl_close ($ch);
  24. echo $result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement