iPhone as network-enabled root shell

Well known security expert H.D. Moore published entertaining article on how to make your Apple iPhone to be a hacking platform… Having a network-enabled root shell in my pocket is great, but being able to pop a root shell on someone else’s iPhone is even better. A few things to keep in mind: Every process runs as root. MobileSafari, MobileMail, even the Calculator, all run with full root privileges. Any […]

Read more →

 

Dump ipcad output into sqlite3

ipcad is IP accounting daemon with Cisco-like ip accounting export. It runs in background, listens traffic on the specified interfaces, and records the traffic for later retrieval and analysis. Here is a piece of shell code that allows to export ipcad output into sqlite3 database format: echo “create table traffic (src, dst, pkt, bt);” | sqlite3 /tmp/throttle.db rsh 127.0.0.1 show ip accounting | grep “^ ” | grep -vi source […]

Read more →

 

Create Linux user with password

Sometimes it’s necessary to create Linux user accounts in batch mode (fully automatic) but often newbies ask how to set password for a new user without entering it manually. Thanks to heaven command useradd can get password as an input parameter, but it should be encrypted. In other words, to create Linux user account with password the following command will be useful: useradd -m -p encryptedPass username I know at […]

Read more →

 

Linux Terminal Performance Comparison

Linux has an abundance of excellent terminal applications. Interestingly, I could not find any decent comparison of their text display performance. Since I use the command line a lot, I want text output that is as fast as possible. When you compile a large project, you don’t want the console output to be the limiting factor. Read more…

Read more →

 

Linux/Unix coreutils command 'paste' to merge lines of files

Unix and Linux GNU coreutils command paste can be useful to merge corresponding or subsequent lines of files. Here is simple example of it’s usage: viper@viper-laptop:~$ cat /tmp/test pop pop1 pop2 viper@viper-laptop:~$ cat /tmp/test1 1 2 3 4 viper@viper-laptop:~$ paste /tmp/test /tmp/test1 pop 1 pop1 2 pop2 3 4

Read more →