Howto stop loops in CentOS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Howto stop loops in CentOS
# 1  
Old 04-20-2016
Network Howto stop loops in CentOS

Good morning,

At the client location

os is CentOS. In all the terminals i.e F1, F2, F3....F10 PING command is continuously running. I tried to terminate it using CTRL C or quit but unable to stop that command in all the terminals. How to stop that? Howto find batch files which are being run by hackers?

I'm not expert in unix flavour. Please help me.

Last edited by fpmurphy; 04-29-2016 at 12:49 AM..
# 2  
Old 04-24-2016
If you are hacked, then the processes that are sending ping are most likely going to restart, even if you kill them. You need to find the files on the system doing this first. I would try to run the following as root to get the PID of any process sending out ping:

Code:
ps faux | awk '/ping/ { print $2 }'

Then try grepping the PIDs from lsof to see if you can find the files associated with this.

If ping is being ran as root, or the files that is sending the ping requests are owned by root, you probably need a complete reload of Centos. Otherwise just chmod 000 any malicious files you find or remove them.

Last edited by DukeNuke2; 04-24-2016 at 05:40 AM..
# 3  
Old 09-06-2016
Thank you

Hi ,

Thank you for your reply to my query regarding ping loop .
# 4  
Old 09-07-2016
Quote:
Originally Posted by Azrael

Code:
ps faux | awk '/ping/ { print $2 }'

Sorry, I hate seeing awk used in this way.
Code:
pgrep ping

Andrew
This User Gave Thanks to apmcd47 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

2. Shell Programming and Scripting

Expect script - going in loops can't stop

Hi First of all I tried lot of forums to create my first expect script. But I am totally stumped at the last step. I am no Linux Admin or ever trained in Linux. I just tried to create the script logically History : I need to to change my password across lot of servers in Linux over ssh ... (4 Replies)
Discussion started by: radioactive9
4 Replies

3. Shell Programming and Scripting

howto stop loop iteration

I wonder how to stop further loop iterations when conditions gets false e.g. This file.txt contains the following structure : 1 2 3 4 5 6 7 8 9 10 How to stop iteration when if statement gets false ? for n in `cat file.txt` do if (( n<=5 )) (1 Reply)
Discussion started by: presul
1 Replies

4. Shell Programming and Scripting

Howto shorten script in a busybox environment by using for loops?

My satellite receiver is equipped with busybox, so a small linux version. That is why I can not use certain commands like #tomorrow in date commands or #date -d &quot;+1 day&quot; and thus I have to use: day1=$ I want to download every day 6 files from the internet but the filenames consist of the date... (6 Replies)
Discussion started by: ni_hao
6 Replies

5. UNIX for Advanced & Expert Users

how to stop others users to stop viewing what i am doing ?

Hi , I have one question, suppose i am a normal user and when i use 'w' command , it shows who is logged on and what they are doing . Now i want to stop others users to know what i am doing accept the root ? can i do this ? thanks (5 Replies)
Discussion started by: mobile01
5 Replies

6. UNIX for Dummies Questions & Answers

howto

Dear All , Kindly I have some questions , I need hints or answers please . I have sparc4 , sun solaries 7 , mail server . i have about 5000 users , with no login shell , or home directories for the users . they only have mail boxes in /var/mail dir . now , I do not have any type of... (6 Replies)
Discussion started by: tamemi
6 Replies
Login or Register to Ask a Question