Skip to content

Instantly share code, notes, and snippets.

View wdc63's full-sized avatar

Wang Dachuan wdc63

  • Southwest University of Science and Technology
  • 59 Qinglong Road, Mianyang,Sichuan, P.R.China
View GitHub Profile
#pip install requests
import subprocess, platform
import requests
import time
def ping(host):
"""
Returns True if host responds to a ping request
"""
# Ping parameters as function of OS
ping_str = "-n 1" if platform.system().lower()=="windows" else "-c 1"
<?php
header("Content-Type:text/html;charset=utf-8");
$htmlData = file_get_contents("test.html");
}
?>
<!doctype html>
<html>
<head>
<script>
var gethtml = "<?php echo $htmlData ;?>";