Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Possible break-in. Does anybody recognize this?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Mon Dec 13, 2004 1:41 am    Post subject: Possible break-in. Does anybody recognize this? Reply with quote

I just noticed a little script file in my home directory called 'tp'. I don't remember creating this and, in fact, am pretty sure I didn't. Here it is:

#! /bin/sh

SQUIDID="/bin/id -u squid"
PROXYPORT='3128'

iptables -t nat -A OUTPUT -p tcp --dport http -m owner --uid-owner $($SQUIDID) -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport ftp -m owner --uid-owner $($SQUIDID) -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport ftp-data -m owner --uid-owner $($SQUIDID) -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport http -j DNAT --to-destination 127.0.0.1:$PROXYPORT
iptables -t nat -A OUTPUT -p tcp --dport ftp -j DNAT --to-destination 127.0.0.1:$PROXYPORT
iptables -t nat -A OUTPUT -p tcp --dport ftp-data -j DNAT --to-destination 127.0.0.1:$PROXYPORT


Since I don't even have squid installed on this box (it's behind a firewall on my lan), I don't think this could have done much. It was also in my user directory with user permissions and not root. Nevertheless, somebody put it here. It also doesn't have execute perms. I've already checked my firewall box and my lan box and don't see anything unusual. Also ran chkrootkit on both boxes. The file is a week old. I know it's trying to set up a local proxy hole in a firewall for squid, but I'm just curious if anybody has seen this before. I believe my firewall is pretty solid and I can't find any trace of a breakin. But then again, they are hard to spot unless you are looking for them.
Back to top
View user's profile Send private message
teknomage1
Veteran
Veteran


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Mon Dec 13, 2004 2:05 am    Post subject: Reply with quote

don't forget to change ALL passwords, cause you never know.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Mon Dec 13, 2004 2:19 am    Post subject: Reply with quote

Done. Good reminder technomage1.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum