This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ;?>"; |