kihei/i-0085f9061f68a54dd
by SadServersMore by SadServers
admin@i-075f2b4944f673d35:~$ ss -tulpna | grep 5000 tcp LISTEN 0 128 127.0.0.1:5000 tcp TIME-WAIT 0 0 127.0.0.1:35450 admin@i-075f2b4944f673d35:~$ ls agent webserver.py admin@i-075f2b4944f673d35:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-075f2b4944f673d35:~$ cd agent/ admin@i-075f2b4944f673d35:~/agent$ ls check.sh sadagent sadagent.txt admin@i-075f2b4944f673d35:~/agent$ cd .. admin@i-075f2b4944f673d35:~$
paris/i-075f2b4944f673d35 01:48
by SadServersdrwxr-xr-x 6 admin admin 4096 Sep 24 23:20 . drwxr-xr-x 3 root root 4096 Sep 17 16:44 .. drwx------ 3 admin admin 4096 Sep 20 15:52 .ansible -rw------- 1 admin admin 485 Dec 29 21:06 .bash_history -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4096 Sep 20 15:56 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-06d586ef8810553b9:~$ cat webserver.py cat: webserver.py: Permission denied (failed reverse-i-search)`curl': ^Ct webserver.py admin@i-06d586ef8810553b9:~$ curl localhost:
paris/i-06d586ef8810553b9 02:52
by SadServers[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in produ - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode) [GIN-debug] GET /ping --> main.setupRouter.func1 (3 handl[GIN-debug] GET /checkscript/:md5sum --> main.setupRouter.func2 (3 handl[GIN-debug] GET /checkcommand --> main.setupRouter.func3 (3 handl[GIN-debug] GET /gethistory --> main.setupRouter.func4 (3 handl[GIN-debug] GET /getlog --> main.setupRouter.func5 (3 handl[GIN-debug] Listening and serving HTTP on :6767 [GIN-debug] [ERROR] listen tcp :6767: bind: address already in use admin@i-0a03c1c0d563d7772:~/agent$ admin@i-0a03c1c0d563d7772:~/agent$ admin@i-0a03c1c0d563d7772:~/agent$ bash check.sh