This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create PingCommand.py
Abdul Wahab Junaidbbbefe43faee
diff --git a/Python Tools/Subprocess_Modules/PingCommand.py b/Python Tools/Subprocess_Modules/PingCommand.pynew file mode 100644index 0000000..18f563a--- /dev/null+++ b/Python Tools/Subprocess_Modules/PingCommand.py@@ -0,0 +1,9 @@+import subprocess+import sys+command_ping = '/bin/ping'+ping_parameter ='-c 1'+domain = "www.awjunaid.com"+p = subprocess.Popen([command_ping,ping_parameter,domain], shell=False, stderr=subprocess.PIPE)+out = p.stderr.read(1)+sys.stdout.write(str(out.decode('utf-8')))+sys.stdout.flush()