kihei/i-0afe27aa1ce9cfeda
by SadServersMore by SadServers
admin@i-02e1f7758a02de499:~$ ^C admin@i-02e1f7758a02de499:~$ ls -la total 44 drwxr-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 1036 Oct 20 18:12 .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-02e1f7758a02de499:~$ curl -vv "http://localhost:5000"
paris/i-02e1f7758a02de499 06:48
by SadServers> GET / HTTP/1.1 > Host: localhost:5000 > User-Agent: curl/7.74.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Server: Werkzeug/2.3.7 Python/3.9.2 < Date: Wed, 04 Oct 2023 19:07:43 GMT < Content-Type: text/html; charset=utf-8 < Content-Length: 12 < Connection: close < * Closing connection 0 Unauthorizedadmin@i-09e85561fc3517875:~$ curl -Lv http://localhost:5000
paris/i-09e85561fc3517875 02:44
by SadServersHere, the second and the third argument of open(2) are decoded by breakin traditional or native usage differs from ANSI or POSIX, the latter forms Structure pointers are dereferenced and the members are displayed as ap mand "ls -l /dev/null" is captured as: lstat("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(0x1, 0x3), Notice how the 'struct stat' argument is dereferenced and how each member and numeric values. Also notice in this example that the first argument the system call fails, arguments may not always be dereferenced. For exa lstat("/foo/bar", 0xb004) = -1 ENOENT (No such file or directory) Manual page strace(1) line 17 (press h for help or q to quit)