Terminal

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

import subprocess

import platform
import socket
import time
import os

path = 'C:/'
host_name = socket.gethostname()
host_ip = socket.gethostbyname(host_name)
print("Cyber Terminal [Version 1.00]")
while True:
code = input(">>> ")
if code == 'ping':
host = input("Enter Website To Ping: ")
number = input("Enter How Many Times To Ping: ")

def ping(host):
param = '-n' if platform.system().lower() == 'windows' else '-c'
command = ['ping', param, number, host]
return subprocess.call(command)
print(ping(host))
if code == 'local':
print("Your Local IPS Is: " + host_ip)
print("Your Desktop Name Is: " + host_name)

if code == 'date':
print("The Local Date Is: " + time.strftime("%m/%d/%Y"))

if code == 'list':
dir_list = os.listdir(path)
print("Files and Directories in '", path, "' :")
print(dir_list)

if code == 'list -a':


file = input("Enter The Direct File Path To Read: ")
dir_list2 = os.listdir(file)
print("Files and directories in '", file, "':")
print(dir_list2)

if code == 'echo me':


echo = input("What Do You Want Me To Echo: ")

if code == 'hi':
print("hi")

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy