slaeshjag
¯\_(ツ)_/¯
I was just about to go to bed, when I just randomly felt I needed to visualize for myself how it would look for users who logged in on my home server (a few friends have a shell account on it.) After logging in, I was just about to close the lid on my laptop when I noticed something strange.
Last login: Fri Mar 11 10:38:21 2011 from 64.206.96.xx
That's odd, I've been home all day, and I didn't wake up until 1pm. So I did a quick lookup on the IP. It's registered to a company in NY, US. That can't be good.
What was he up to on my server? And what was he doing with my account? Well, since I know what I typically do and don't, I was able to extract it from my .bash_history
Now, this is just rude. Not only does he poke around in my files, HE ATTACHED MY TMUX! This is the point where it all became personal. I did the bad practice of having a root terminal up, but it was following a log, so he probably didn't notice it. But it also had my irssi etc.. That's not very nice. This is the point where I'm thankful for my ISPs bad peering to Germany, my session at a friends server had already been dropped by the point he logged in.
but how did he get in? I grepped his IP in auth.log, but there was only one login attempt, the one he got in on. Grepped on my username that day, only one login before I woke up.
Mar 11 10:38:21 Choksondik sshd[25726]: Accepted publickey for steven from 64.206.96.xx port 45381 ssh2
Publickey? WHAT? And it doesn't even seem like he had to guess the username, I'm pretty sure I didn't leave my public/private key pair on the internetz
Is this a hole in the ssh server that debian hasn't patched? What the hell?
Mar 11 10:38:21 Choksondik sshd[25726]: pam_unix(sshd:session): session opened for user steven by (uid=0)
Mar 11 10:39:35 Choksondik sshd[25726]: pam_unix(sshd:session): session closed for user steven
He didn't stay very long either, is this a scripted bot, or is he some sort of super human? Just look at everything he did during that minute fourteen.
Needless to say, I've closed down external access to my SSH server until I know what the hell is going on.
Now I'm just feeling... Dirty, violated... The though of somebody accessing my private shell/fileserver... It's hard to describe, I just feel like I need revenge.
What would you do in a situation like this?
Last login: Fri Mar 11 10:38:21 2011 from 64.206.96.xx
That's odd, I've been home all day, and I didn't wake up until 1pm. So I did a quick lookup on the IP. It's registered to a company in NY, US. That can't be good.
What was he up to on my server? And what was he doing with my account? Well, since I know what I typically do and don't, I was able to extract it from my .bash_history
w
ls
cat sl.py
ls
cat isbigger.c
cat config
ls -la
cat cowsay
cat .bash_history
nano .bash_history
sudo
ls
cat fortune.txt
ls
cat stream.sh
cat xorg.conf
ls -la
cat .nano_history
cd code
ls
cat socket-hidden-server.c
ls
./socket-hidden-server
cd pub/
ls
cat posix_tcp_ip_sockets.txt
w
strings /usr/sbin/sshd|grep %s:%s -B2|head -n 1|grep -v port
ps ax
cat /proc/cpuinfo
w
tmux
tmux --help
tmux --morte
tmux --more
socklist
netstat -tan
su
tmux attach
tmux attach
w
uname 0a
uname -a
ls
pwd
nc
nc -vvlp 2121
ls
cat sl.py
ls
cat isbigger.c
cat config
ls -la
cat cowsay
cat .bash_history
nano .bash_history
sudo
ls
cat fortune.txt
ls
cat stream.sh
cat xorg.conf
ls -la
cat .nano_history
cd code
ls
cat socket-hidden-server.c
ls
./socket-hidden-server
cd pub/
ls
cat posix_tcp_ip_sockets.txt
w
strings /usr/sbin/sshd|grep %s:%s -B2|head -n 1|grep -v port
ps ax
cat /proc/cpuinfo
w
tmux
tmux --help
tmux --morte
tmux --more
socklist
netstat -tan
su
tmux attach
tmux attach
w
uname 0a
uname -a
ls
pwd
nc
nc -vvlp 2121
Now, this is just rude. Not only does he poke around in my files, HE ATTACHED MY TMUX! This is the point where it all became personal. I did the bad practice of having a root terminal up, but it was following a log, so he probably didn't notice it. But it also had my irssi etc.. That's not very nice. This is the point where I'm thankful for my ISPs bad peering to Germany, my session at a friends server had already been dropped by the point he logged in.
but how did he get in? I grepped his IP in auth.log, but there was only one login attempt, the one he got in on. Grepped on my username that day, only one login before I woke up.
Mar 11 10:38:21 Choksondik sshd[25726]: Accepted publickey for steven from 64.206.96.xx port 45381 ssh2
Publickey? WHAT? And it doesn't even seem like he had to guess the username, I'm pretty sure I didn't leave my public/private key pair on the internetz
Is this a hole in the ssh server that debian hasn't patched? What the hell?
Mar 11 10:38:21 Choksondik sshd[25726]: pam_unix(sshd:session): session opened for user steven by (uid=0)
Mar 11 10:39:35 Choksondik sshd[25726]: pam_unix(sshd:session): session closed for user steven
He didn't stay very long either, is this a scripted bot, or is he some sort of super human? Just look at everything he did during that minute fourteen.
Needless to say, I've closed down external access to my SSH server until I know what the hell is going on.
Now I'm just feeling... Dirty, violated... The though of somebody accessing my private shell/fileserver... It's hard to describe, I just feel like I need revenge.
What would you do in a situation like this?