Bucket Guild | FUBU BH Forums

I Has a Bucket: Preventing bucket theft on Bleeding Hollow | FUBU: A better BH Forum
It is currently Tue Apr 22, 2025 4:45 pm



Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: @apache nerds
PostPosted: Tue Nov 30, 2010 4:39 pm  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

Code:
[Fri Nov 26 07:46:19 2010] [notice] caught SIGTERM, shutting down


jealous?


additionally, any off-hand suggestions as to prevent things like this from happening in the future?



edit: apparently they were proxying from at least ukraine and china judging by the IPs in the access/error logs


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject: Re: @apache nerds
PostPosted: Wed Dec 01, 2010 12:01 am  
User avatar

Querulous Quidnunc
Joined: Fri May 14, 2010 6:59 pm
Posts: 2569
Location: In your dreams.
Offline

rikkilake wrote:
Code:
[Fri Nov 26 07:46:19 2010] [notice] caught SIGTERM, shutting down


jealous?


additionally, any off-hand suggestions as to prevent things like this from happening in the future?



edit: apparently they were proxying from at least ukraine and china judging by the IPs in the access/error logs


That log entry means this

# killall apache

That uses the default kill level of -15, terminate. -9 is the "get out now" one. If you were getting hacked with malicious intent, you'd see SIGSEGV (11), which is segfault. Sigterm's pretty much the nice way of saying "please close". Sighup is the one you send it to reload the configuration files without having to interrupt the "service".

Now, are you going to provide something a bit more indicative of anything you mentioned?


Image
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 12:35 am  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

someone from china had been spending quite some time trying to load pages that didn't exist on my server, mostly things like /var/www/mysql 100 times or /var/www/phpmyadmin

i assumed that message was apaches way of saying, "i c wut u did thar" and closing down--similar to a BSOD

i've since banned the three ips he was using


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 12:43 am  
User avatar

Querulous Quidnunc
Joined: Fri May 14, 2010 6:59 pm
Posts: 2569
Location: In your dreams.
Offline

rikkilake wrote:
someone from china had been spending quite some time trying to load pages that didn't exist on my server, mostly things like /var/www/mysql 100 times or /var/www/phpmyadmin

i assumed that message was apaches way of saying, "i c wut u did thar" and closing down--similar to a BSOD

i've since banned the three ips he was using


if it's a shared server, it'll have a watchdog program to autokill any process eating abnormal resources.


Image
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 12:46 am  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

is there a good one i could apt-get?


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:10 am  
User avatar

Querulous Quidnunc
Joined: Fri May 14, 2010 6:59 pm
Posts: 2569
Location: In your dreams.
Offline

rikkilake wrote:
is there a good one i could apt-get?


by program i meant script custom-built to monitor apache processes over a period of time and report, or if running out of control, kill.

I'm tempted to tell you to run "top", but you might get lost in that for a bit, mainly because all it is is a task manager in text mode.


Image
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:15 am  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

Tehra wrote:
rikkilake wrote:
is there a good one i could apt-get?


by program i meant script custom-built to monitor apache processes over a period of time and report, or if running out of control, kill.

I'm tempted to tell you to run "top", but you might get lost in that for a bit, mainly because all it is is a task manager in text mode.

eh, i guess i'll do some googling tomorrow as to not demand that you write my script for me


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:19 am  
User avatar

Querulous Quidnunc
Joined: Fri May 14, 2010 6:59 pm
Posts: 2569
Location: In your dreams.
Offline

unless you're running 25+ sites on the same machine, that's not something you'd need.

edit: if your server is choking on several requests that are 404'ing, replace the hamster.

i ran hackthepla.net on a pentium 75 with 64mb of RAM, off a cable modem that i managed to keep a static ip on for over 2 years. yes, it ran mysqld, and sendmail, and ftp, and a few eggdrops. oh, and a screen'd bitchx session. it managed to hit the "rollover" value of uptime in the earlier 2.2 kernels.


Image


Last edited by Tehra on Wed Dec 01, 2010 1:24 am, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:20 am  
Blathering Buffoon
Joined: Thu Jul 24, 2008 7:01 am
Posts: 1036
Offline

I just made all of my development stuff only accessible by localhost only

because fuck that
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:20 am  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

Tehra wrote:
unless you're running 25+ sites on the same machine, that's not something you'd need.

only one
but i dont want this to happen again


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:22 am  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

Quittermike wrote:
I just made all of my development stuff only accessible by localhost only

because fuck that

the nerd didn't access anything
he tried
but every directory he attempted to pull from didn't even exist

Code:
[Fri Nov 19 17:06:57 2010] [error] [client 91.213.8.43] File does not exist: /var/www/mysql
[Fri Nov 19 17:06:57 2010] [error] [client 91.213.8.43] File does not exist: /var/www/myadmin
[Fri Nov 19 17:06:57 2010] [error] [client 91.213.8.43] File does not exist: /var/www/webadmin
[Fri Nov 19 17:06:58 2010] [error] [client 91.213.8.43] File does not exist: /var/www/sqlweb
[Fri Nov 19 17:06:58 2010] [error] [client 91.213.8.43] File does not exist: /var/www/websql
[Fri Nov 19 17:06:58 2010] [error] [client 91.213.8.43] File does not exist: /var/www/webdb
[Fri Nov 19 17:06:59 2010] [error] [client 91.213.8.43] File does not exist: /var/www/mysqladmin
[Fri Nov 19 17:06:59 2010] [error] [client 91.213.8.43] File does not exist: /var/www/mysql-admin
[Fri Nov 19 17:06:59 2010] [error] [client 91.213.8.43] File does not exist: /var/www/phpmyadmin2
[Fri Nov 19 17:07:00 2010] [error] [client 91.213.8.43] File does not exist: /var/www/phpMyAdmin2
[Fri Nov 19 17:07:00 2010] [error] [client 91.213.8.43] File does not exist: /var/www/phpMyAdmin-2
[Fri Nov 19 17:07:00 2010] [error] [client 91.213.8.43] File does not exist: /var/www/php-my-admin

there's a sample of my error.log page


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:25 am  
User avatar

Querulous Quidnunc
Joined: Fri May 14, 2010 6:59 pm
Posts: 2569
Location: In your dreams.
Offline

that's what i get for stopping to smoke a bowl before editing.

Quote:
edit: if your server is choking on several requests that are 404'ing, replace the hamster.

i ran hackthepla.net on a pentium 75 with 64mb of RAM, off a cable modem that i managed to keep a static ip on for over 2 years. yes, it ran mysqld, and sendmail, and ftp, and a few eggdrops. oh, and a screen'd bitchx session. it managed to hit the "rollover" value of uptime in the earlier 2.2 kernels.


Image
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 1:26 am  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

Tehra wrote:
that's what i get for stopping to smoke a bowl before editing.

Quote:
edit: if your server is choking on several requests that are 404'ing, replace the hamster.

i ran hackthepla.net on a pentium 75 with 64mb of RAM, off a cable modem that i managed to keep a static ip on for over 2 years. yes, it ran mysqld, and sendmail, and ftp, and a few eggdrops. oh, and a screen'd bitchx session. it managed to hit the "rollover" value of uptime in the earlier 2.2 kernels.

im running it on a dell dimension 3000 (2.4ghz p4 and 1gb ram)

im also screening bitchx :>


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 8:54 pm  
User avatar

Tasty Tourist
Joined: Thu May 20, 2010 9:41 am
Posts: 35
Offline

As far as keeping this from happening you probably would be well served to learn how to setup and configure Snort which can both detect and prevent intrusions. Make sure to test your alert thresholds well otherwise you could get dozens of emails from false alarms if you set it up to email you. Just from the very short log snip it probably is just some wannabe running a Metasploit or Nessus scan looking for low hanging fruit that hasn't been properly secured.

Normally these kinds of things aren't a huge worry other than making your logs get rather large (and thus making you ignore them). Since this was aimed at the webserver you might not necessarily want to change the port that apache runs on but if you start getting hits on 22/SSH move it over to like 2200 and the automated scans won't even notice it because they check the common ports and thats about it unless its a more advanced person doing the scan.


Image
Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 01, 2010 9:02 pm  
User avatar

Obtuse Oaf
Joined: Tue Jan 15, 2008 8:44 am
Posts: 826
Location: Reston, VA
Offline

thanks, i'm reading the snort manual right now

it didn't look anything close to being professional. i mean, if he knew what he was doing, he probably would've gotten in before apache terminated.
although i did start banning ips to keep people out
Code:
username@serverName:~$ sudo iptables -L
[sudo] password for username:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       all  --  s43.justhost.in.ua   anywhere
DROP       all  --  58.218.204.110       anywhere
DROP       all  --  221.192.199.49       anywhere
DROP       all  --  58.218.199.147       anywhere
DROP       all  --  baiduspider-119-63-198-32.crawl.baidu.jp  anywhere         
DROP       all  --  58.218.0.0/16        anywhere


hopefully no one in china is actually interested in what i have hosted


█▀█ █ █░█ █░█ █ █░ █▀█ █░█ █▀▀
█▀▄ █ █▀▄ █▀▄ █ █░ █▀█ █▀▄ █▀▀
▀░▀ ▀ ▀░▀ ▀░▀ ▀ ▀▀ ▀░▀ ▀░▀ ▀▀▀
sunshine.kittens.bubblegum.happythoughts
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron

World of Warcraft phpBB template "WoWMoonclaw" created by MAËVAH (ex-MOONCLAW) (v3.0.8.0) - wowcr.net : World of Warcraft styles & videos
© World of Warcraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries. wowcr.net is in no way associated with Blizzard Entertainment.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group