Erkundung des Systems

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Wer bin ich?

  • id
uid=33(www-data) gid=33(www-data) groups=33(www-data)

Wo bin ich?

  • pwd
/var/www/html

Welche ip habe ich?

  • ip a s eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:c5:e8:2f brd ff:ff:ff:ff:ff:ff
    inet 10.0.5.104/24 brd 10.0.5.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fec5:e82f/64 scope link 
       valid_lft forever preferred_lft forever

Läuft ssh?

  • netstat -lntp | grep 22
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -               
tcp6       0      0 :::22                   :::*                    LISTEN      -

Welcher Kernel läuft?

  • uname -a
Linux opfer 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux