Created
November 11, 2011 09:26
-
-
Save shamun/1357588 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################## | |
# b) What Linux kernel and default stuff he got? | |
################################## | |
/ $ lspci | |
lspci: /sys/bus/pci/devices: No such file or directory | |
/ $ lsusb | |
Bus 001 Device 001: ID 1d6b:0002 | |
/ $ free | |
total used free shared buffers | |
Mem: 746100 398596 347504 0 23076 | |
-/+ buffers: 375520 370580 | |
Swap: 0 0 0 | |
/data/data/berserker.android.apps.sshdroid/home/bin $ tcpsvd | |
[ cp fbset ifenslave lpq nbd-client renice split udhcpd | |
[[ cpio fbsplash ifplugd lpr nc reset start-stop-daemon udpsvd | |
acpid crond fdflush ifup ls netstat resize stat umount | |
add-shell crontab fdformat inetd lsattr nice rev strings uname | |
addgroup cryptpw fdisk init lsmod nmeter rm stty unexpand | |
adduser cttyhack fgconsole insmod lspci nohup rmdir su uniq | |
adjtimex cut fgrep install lsusb nslookup rmmod sulogin unix2dos | |
arp date find ionice lzcat ntpd route sum unlzma | |
arping dc findfs iostat lzma od rpm sv unlzop | |
ash dd flock ip lzop openvt rpm2cpio svlogd unxz | |
awk deallocvt fold ipaddr lzopcat passwd rtcwake swapoff unzip | |
base64 delgroup free ipcalc makedevs patch run-parts swapon uptime | |
basename deluser freeramdisk ipcrm makemime pgrep runlevel switch_root usleep | |
beep depmod fsck ipcs man pidof runsv sync uudecode | |
blkid devmem fsck.minix iplink md5sum ping runsvdir sysctl uuencode | |
blockdev df fsync iproute mdev ping6 rx syslogd vconfig | |
bootchartd dhcprelay ftpd iprule mesg pipe_progress script tac vi | |
brctl diff ftpget iptunnel microcom pivot_root scriptreplay tail vlock | |
bunzip2 dirname ftpput kbd_mode mkdir pkill sed tar volname | |
bzcat dmesg fuser kill mkdosfs pmap sendmail tcpsvd wall | |
bzip2 dnsd getopt killall mke2fs popmaildir seq tee watch | |
cal dnsdomainname getty killall5 mkfifo poweroff setarch telnet watchdog | |
cat dos2unix grep klogd mkfs.ext2 powertop setconsole telnetd wc | |
catv du gunzip last mkfs.minix printenv setfont test wget | |
chat dumpkmap gzip length mkfs.vfat printf setkeycodes tftp which | |
chattr dumpleases halt less mknod ps setlogcons tftpd who | |
chgrp echo hd linux32 mkpasswd pscan setsid time whoami | |
chmod ed hdparm linux64 mkswap pwd setuidgid timeout xargs | |
chown egrep head linuxrc mktemp raidautorun sh top xz | |
chpasswd eject hexdump ln modinfo rdate sha1sum touch xzcat | |
chpst env hostid loadfont modprobe rdev sha256sum tr yes | |
chroot envdir hostname loadkmap more readahead sha512sum traceroute zcat | |
chrt envuidgid httpd logger mount readlink showkey traceroute6 zcip | |
chvt ether-wake hush login mountpoint readprofile slattach true | |
cksum expand hwclock logname mpstat realpath sleep tty | |
clear expr id logread mt reboot smemcap ttysize | |
cmp fakeidentd ifconfig losetup mv reformime softlimit tunctl | |
comm false ifdown lpd nameif remove-shell sort udhcpc | |
################################### | |
# c) What network? | |
################################### | |
/ $ ifconfig -a | |
dummy0 Link encap:Ethernet HWaddr 6E:A7: | |
BROADCAST NOARP MTU:1500 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00 | |
NOARP MTU:1460 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
lo Link encap:Local Loopback | |
inet addr:127.0.0.1 Mask:255.0.0.0 | |
inet6 addr: ::1/128 Scope:Host | |
UP LOOPBACK RUNNING MTU:16436 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
sit0 Link encap:IPv6-in-IPv4 | |
NOARP MTU:1480 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
usb0 Link encap:Ethernet HWaddr 12:74 | |
BROADCAST MULTICAST MTU:1500 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
wlan0 Link encap:Ethernet HWaddr F4:6D | |
inet addr:94.x.x.x Bcast:255.255.255.255 Mask:255.255.240.0 | |
inet6 addr: fe80::f66d:4ff:fe56:d113/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:1041 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:656 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:234590 (229.0 KiB) TX bytes:109700 (107.1 KiB) | |
####################################### | |
# d) What process apps running as default? | |
####################################### | |
/ $ ps aux | |
PID USER TIME COMMAND | |
1 0 0:00 /init | |
2 0 0:00 [kthreadd] | |
3 0 2:42 [ksoftirqd/0] | |
5 0 0:00 [kworker/u:0] | |
6 0 0:00 [migration/0] | |
7 0 0:00 [migration/1] | |
8 0 0:00 [kworker/1:0] | |
9 0 0:00 [ksoftirqd/1] | |
10 0 0:00 [khelper] | |
11 0 0:00 [pm] | |
12 0 0:00 [suspend] | |
13 0 0:00 [sync_supers] | |
14 0 0:00 [bdi-default] | |
15 0 0:00 [kblockd] | |
16 0 0:00 [khubd] | |
17 0 0:00 [irq/118-tps6586] | |
18 0 0:00 [tps6586x_strees] | |
19 0 0:00 [kmmcd] | |
20 0 0:00 [kconservative] | |
21 0 0:00 [cpu-tegra] | |
22 0 0:00 [khungtaskd] | |
23 0 0:00 [kswapd0] | |
24 0 0:00 [fsnotify_mark] | |
25 0 0:00 [aio] | |
26 0 0:00 [crypto] | |
40 0 0:00 [tegradc.0] | |
41 0 0:00 [tegradc.0] | |
42 0 0:00 [nvhdcp1] | |
43 0 0:00 [tegradc.1] | |
44 0 0:00 [tegradc.1] | |
45 0 0:00 [nct1008_strees_] | |
53 0 0:00 [asusec_wq] | |
54 0 0:00 [f_mtp] | |
55 0 0:00 [GpioKey_workque] | |
56 0 0:00 [i2c_touchsensor] | |
57 0 0:00 [prox_wq] | |
59 0 0:00 [battery_workque] | |
60 0 0:00 [i2c_lightsensor] | |
61 0 0:00 [kstriped] | |
62 0 0:00 [kondemand] | |
63 0 0:02 [kinteractiveup] | |
67 0 0:00 [usbhid_resumer] | |
68 0 0:00 [binder] | |
69 0 0:00 [irq/379-wm8903] | |
70 0 0:00 [detection] | |
71 0 0:00 [l2cap] | |
72 0 0:00 [krfcommd] | |
74 0 0:00 /sbin/ueventd | |
75 0 0:01 [mmcqd] | |
77 0 0:00 [jbd2/mmcblk0p1-] | |
78 0 0:00 [ext4-dio-unwrit] | |
79 0 0:00 [jbd2/mmcblk0p7-] | |
80 0 0:00 [ext4-dio-unwrit] | |
81 0 0:00 [jbd2/mmcblk0p2-] | |
82 0 0:00 [ext4-dio-unwrit] | |
83 1000 0:00 /system/bin/servicemanager | |
84 0 0:00 /system/bin/vold | |
85 0 0:00 /system/bin/netd | |
86 0 0:00 /system/bin/debuggerd | |
87 0 0:03 zygote /bin/app_process -Xzygote /system/bin --zygote --start-system-server | |
88 1013 0:00 /system/bin/mediaserver | |
89 1002 0:00 /system/bin/dbus-daemon --system --nofork | |
90 0 0:00 /system/bin/installd | |
91 1017 0:00 /system/bin/keystore /data/misc/keystore | |
96 1023 0:00 /system/bin/sdcard /data/media 1023 1023 | |
97 0 0:00 /system/bin/glgps -c /system/etc/gps/gpsconfig.xml | |
120 0 0:00 [flush-179:0] | |
127 1000 0:48 system_server | |
136 0 0:00 [irq/178-2d_0] | |
137 0 0:01 [irq/182-3d] | |
144 0 0:00 [irq/184-disp0] | |
182 0 0:00 [iscan_sysioc] | |
183 0 0:00 [dhcp_sysioc] | |
184 0 0:00 [dhd_watchdog] | |
185 0 0:00 [dhd_dpc] | |
186 0 0:00 [dhd_sysioc] | |
187 0 0:01 [ksdioirqd/mmc2] | |
189 1000 0:02 com.android.systemui | |
197 10000 0:02 com.nuance.xt9.input | |
206 1010 0:00 /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -iwlan0 | |
212 1001 0:00 com.android.phone | |
214 10033 0:07 com.android.launcher | |
239 10021 0:00 com.google.android.gsf.login | |
241 10006 0:00 com.asus.UpdateLauncher | |
267 10021 0:01 com.google.process.gapps | |
281 10027 0:00 android.process.media | |
293 10005 0:00 android.process.acore | |
325 10059 0:55 berserker.android.apps.sshdroid | |
335 10004 0:00 com.android.vending | |
348 10038 0:00 com.google.android.partnersetup | |
364 1014 0:00 /system/bin/dhcpcd -ABKL -h android_1206059a6d5467c3 wlan0 | |
403 10015 0:00 com.ecareme.pixwe | |
413 10026 0:00 com.google.android.apps.uploader | |
436 10001 0:00 com.asus.weather | |
445 10041 0:00 com.android.gallery3d | |
469 10010 0:00 com.splashtop.remote.pad.asus | |
490 10029 0:00 com.google.android.apps.maps:NetworkLocationService | |
495 1000 0:00 com.asus.keyboard | |
526 10040 0:00 com.google.android.gm | |
539 10044 0:00 com.android.email | |
550 10045 0:00 com.android.deskclock | |
560 1000 0:00 com.asus.dm | |
572 10047 0:00 com.asus.DLNA | |
579 10050 0:00 com.android.providers.calendar | |
587 10054 0:00 com.android.bluetooth | |
595 10060 0:00 com.noshufou.android.su | |
613 10023 0:00 com.asus.mygazine | |
620 10025 0:00 com.google.android.music | |
670 10059 0:00 /data/data/berserker.android.apps.sshdroid/dropbear/dropbear -H /data/data/berserker.android.apps.sshdroid/home -Y fffff -p 2222 -r /data/data/berserker.andr | |
688 10059 0:00 /data/data/berserker.android.apps.sshdroid/dropbear/dropbear -H /data/data/berserker.android.apps.sshdroid/home -Y fffff -p 2222 -r /data/data/berserker.andr | |
689 10059 0:00 -sh | |
690 10059 0:00 sh | |
715 0 0:00 [kworker/0:0] | |
726 0 0:00 [kworker/1:1] | |
774 10058 0:02 org.connectbot | |
789 10058 0:00 /system/bin/sh - | |
811 0 0:00 [kworker/u:2] | |
812 0 0:00 [flush-0:18] | |
813 0 0:00 [kworker/0:1] | |
814 10029 0:00 com.google.android.apps.maps | |
842 0 0:00 [kworker/0:2] | |
850 10059 0:00 ps aux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################### | |
# a) What about package manager? | |
########################################### | |
/ $ adb -h | |
Android Debug Bridge version 1.0.26 | |
-d - directs command to the only connected USB device | |
returns an error if more than one USB device is present. | |
-e - directs command to the only running emulator. | |
returns an error if more than one emulator is running. | |
-s <serial number> - directs command to the USB device or emulator with | |
the given serial number. Overrides ANDROID_SERIAL | |
environment variable. | |
-p <product name or path> - simple product name like 'sooner', or | |
a relative/absolute path to a product | |
out directory like 'out/target/product/sooner'. | |
If -p is not specified, the ANDROID_PRODUCT_OUT | |
environment variable is used, which must | |
be an absolute path. | |
devices - list all connected devices | |
connect <host>[:<port>] - connect to a device via TCP/IP | |
Port 5555 is used by default if no port number is specified. | |
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device. | |
Port 5555 is used by default if no port number is specified. | |
Using this ocmmand with no additional arguments | |
will disconnect from all connected TCP/IP devices. | |
device commands: | |
adb push <local> <remote> - copy file/dir to device | |
adb pull <remote> [<local>] - copy file/dir from device | |
adb sync [ <directory> ] - copy host->device only if changed | |
(-l means list but don't copy) | |
(see 'adb help all') | |
adb shell - run remote shell interactively | |
adb shell <command> - run remote shell command | |
adb emu <command> - run emulator console command | |
adb logcat [ <filter-spec> ] - View device log | |
adb forward <local> <remote> - forward socket connections | |
forward specs are one of: | |
tcp:<port> | |
localabstract:<unix domain socket name> | |
localreserved:<unix domain socket name> | |
localfilesystem:<unix domain socket name> | |
dev:<character device name> | |
jdwp:<process pid> (remote only) | |
adb jdwp - list PIDs of processes hosting a JDWP transport | |
adb install [-l] [-r] [-s] <file> - push this package file to the device and install it | |
('-l' means forward-lock the app) | |
('-r' means reinstall the app, keeping its data) | |
('-s' means install on SD card instead of internal storage) | |
adb uninstall [-k] <package> - remove this app package from the device | |
('-k' means keep the data and cache directories) | |
adb bugreport - return all information from the device | |
that should be included in a bug report. | |
adb help - show this help message | |
adb version - show version num | |
DATAOPTS: | |
(no option) - don't touch the data partition | |
-w - wipe the data partition | |
-d - flash the data partition | |
scripting: | |
adb wait-for-device - block until device is online | |
adb start-server - ensure that there is a server running | |
adb kill-server - kill the server if it is running | |
adb get-state - prints: offline | bootloader | device | |
adb get-serialno - prints: <serial-number> | |
adb status-window - continuously print device status for a specified device | |
adb remount - remounts the /system partition on the device read-write | |
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program | |
adb reboot-bootloader - reboots the device into the bootloader | |
adb root - restarts the adbd daemon with root permissions | |
adb usb - restarts the adbd daemon listening on USB | |
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port | |
networking: | |
adb ppp <tty> [parameters] - Run PPP over USB. | |
Note: you should not automatically start a PPP connection. | |
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1 | |
[parameters] - Eg. defaultroute debug dump local notty usepeerdns | |
adb sync notes: adb sync [ <directory> ] | |
<localdir> can be interpreted in several ways: | |
- If <directory> is not specified, both /system and /data partitions will be updated. | |
- If it is "system" or "data", only the corresponding partition | |
is updated. | |
environmental variables: | |
ADB_TRACE - Print debug information. A comma separated list of the following values | |
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp | |
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given. | |
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment