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 system_calls.py
Abdul Wahab Junaid3b94cce80dbc
diff --git a/Python Tools/Subprocess_Modules/system_calls.py b/Python Tools/Subprocess_Modules/system_calls.pynew file mode 100644index 0000000..fee5ba3--- /dev/null+++ b/Python Tools/Subprocess_Modules/system_calls.py@@ -0,0 +1,15 @@+#!/usr/bin/python3+import os+from subprocess import call++# use the os interface to get access to system information+print("Current path",os.getcwd())+print("PATH Environment variable:",os.getenv("PATH"))++# using system method from os module+print("List files using the os module:")+os.system("ls -la")++# using call method from subprocess module+print("List files using the subprocess module:")+call(["ls", "-la"])