Sinisterly
Checking for Keyloggers/Rats/Etc. - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Computers (https://sinister.ly/Forum-Computers)
+--- Forum: Antivirus & Protection (https://sinister.ly/Forum-Antivirus-Protection)
+--- Thread: Checking for Keyloggers/Rats/Etc. (/Thread-Checking-for-Keyloggers-Rats-Etc)

Pages: 1 2


Checking for Keyloggers/Rats/Etc. - Wonder - 01-04-2014

Very brief explanation for users using Windows.
Fine print: This is for educational purposes only, though I have a hard time believing you could do anything bad with this info. Furthermore, this is only to be used for the detection of malicious programs that utilize a connection to the internet. (Keyloggers, Specific type of Trojans, etc.) It's also not used to remove said programs, just to see if you have them. You'll need some virus protection to remove them. This is just to prevent people making "OMG AM I KEYLOGGED" threads constantly (I'm not sure how much it happens here, but I've seen it happen a lot other places).

To find Keyloggers (as well as any other malicious program accessing the internet), it's usually not as simple as just opening your Task Manager and finding the process, nor is it as easy as running a virus scan. The fact of the matter is that if a hacker wants their activity to be undetectable, you will not see it. That's all there is to it. Hackers can use complex method of hiding files/processes from such tools to make this sort of 'quick fix' impossible. Though it may be possible with that kid down the block that gave you a Keylogger to mess with you, it's not possible with an educated hacker.

To avoid this, there are several ways to figure out if someone has unauthorized access over your client. The easiest being as follows.

Do this once BEFORE YOU CONNECT TO THE INTERNET IN ANY WAY.

Press the start menu button.

Click "Run". (Windows 7 may not have this by default. Just search it in your "Search programs and files" bar.)

Type "Cmd", and run it.

You should now be in a Command Prompt.

Now enter: netstat -arn

Press enter.

You should now see a list of numbers under "Network Address, Netmask, Gateway Address, Interface, Metric".

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
255.255.255.255 255.255.255.255 255.255.255.255 0.0.0.0 1

If it doesn't look like something like that, and you're not connected to the internet...
Your computer is infected.

If it does, move on.

Next, connect to the internet.
Repeat the "netstat -arn" command mentioned earlier.

You should now see numbers under "Network Destination, Netmask, Gateway Address, Interface, Metric"

If it doesn't list only the network addresses used by your ISP...
You're infected.

As a rule of thumb, it should be something like:

0.0.0.0 0.0.0.0 216.1.104.70 216.1.104.70 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
216.1.104.0 255.255.255.0 216.1.104.70 216.1.104.70 1
216.1.104.70 255.255.255.255 127.0.0.1 127.0.0.1 1
216.1.104.255 255.255.255.255 216.1.104.70 216.1.104.70 1
224.0.0.0 224.0.0.0 216.1.104.70 216.1.104.70 1
255.255.255.255 255.255.255.255 216.1.104.70 216.1.104.70 1

If you see something odd listed here... It's bad.

In the next section you are going to close every program you have using the internet.
You're now going to open up your Command Prompt and type: netstat -an
The only IP listed here after you close everything accessing the internet should be the one assigned to you by your ISP.
If there are any other IPs listed here...
You're infected.

Rule of thumb... Should look like this:

Protocol Local Address Foreign Address State
TCP 0.0.0.0:0 0.0.0.0:0 LISTENING
TCP 216.1.104.32:120 0.0.0.0:0 LISTENING
TCP 216.1.104.32:121 0.0.0.0:0 LISTENING
TCP 216.1.104.32:122 0.0.0.0:0 LISTENING
UDP 216.1.104.32:123 *:*

Listed here, 216.1.104.32... The bolded part will almost always change.
Consider that number your "Session ID".

Last, Go back into your Prompt.
Type in, again: netstat -arn
Look for "Interface list".
You should now see all your active network adapters.
Assuming you still have all your programs closed,
You should only see the net adapters normally used by your computer.
(And possibly a Teamviewer VPN assuming you use Teamviewer. It doesn't like to close its net adapter sometimes.)

If you see something your computer obviously doesn't use normally, (assuming you don't know how to use your control panel to find the network adapters manually) Google is your friend.
Chances are that if it's utilizing half of your network connection with everything closed... It's probably not friendly.
Now, that step won't usually show anything odd, even if you have a virus.
So, I won't go so far as to say you're not infected yet.

The last step... Obviously: Run a virus scan.
Hackers are able to hide viruses from these scans using very simple methods. Naturally though, you can't hide from everything. The more Anti-virus programs you have, the better the chance of picking something up. (Seriously. It may be annoying, but if you're security conscious, it's a must.)

(01-04-2014, 09:48 PM)Emerald Wrote: Also, be sure to check %appdata% and %temp%. Loads of shitty Hackforums RATs are stored there. But very good tutorial! Thanks!

Sources:
Spoiler:
http://answers.microsoft.com/en-us/windows/forum/windows_vista-security/how-to-detect-if-a-keylogger-is-installed/d14c6cd6-6975-4b25-a2c5-17e5de194b50
http://www.securitygeeks.net/2013/06/how-to-find-out-if-you-have-keylogger.html
http://www.ozzu.com/mswindows-forum/keylogger-have-one-t106774.html
http://www.onepiecebay.net/forums/archive/index.php/t-3217.html?s=19b59456294a971a6a5bc8040779415f
EXPERIENCE. I had a script kiddy friend who always played with this shit. He tried to put rats and keyloggers on all my stuff, took me long enough to figure out how to get rid of them.
Also i made this thread on Se7enSins, my account is "Garrett" over there (if you don't believe me shoot me a PM), so i didn't really copy and paste this.



RE: Checking for Keyloggers/Rats/Etc. - Emerald - 01-04-2014

Also, be sure to check %appdata% and %temp%. Loads of shitty Hackforums RATs are stored there. But very good tutorial! Thanks!


RE: Checking for Keyloggers/Rats/Etc. - Fallen - 01-04-2014

Thanks for this thread.


RE: Checking for Keyloggers/Rats/Etc. - Zurchi - 01-05-2014

Love the tutorial.
How long did it take you to copy and paste it?

http://www.se7ensins.com/forums/threads/tut-checking-for-keyloggers-rats-etc.1049122/
http://www.onepiecebay.net/forums/archive/index.php/t-3217.html?s=19b59456294a971a6a5bc8040779415f


RE: Checking for Keyloggers/Rats/Etc. - Wonder - 01-05-2014

(01-05-2014, 12:44 AM)Zurchi Wrote: Love the tutorial.
How long did it take you to copy and paste it?

http://www.se7ensins.com/forums/threads/tut-checking-for-keyloggers-rats-etc.1049122/
http://www.onepiecebay.net/forums/archive/index.php/t-3217.html?s=19b59456294a971a6a5bc8040779415f

Didn't read the sources i guess, i told you that account on Se7enSins is mine:
[Image: acWlFALuv8.png]
And i thought i put that site in the sources, of course i used 90% of that but i still cited it (I used that to get rid of the keylogger my friend put on here)...


RE: Checking for Keyloggers/Rats/Etc. - sprremix - 01-07-2014

(01-04-2014, 09:48 PM)Emerald Wrote: Also, be sure to check %appdata% and %temp%. Loads of shitty Hackforums RATs are stored there. But very good tutorial! Thanks!

This so much. Some even store their logs in C:\ .


RE: Checking for Keyloggers/Rats/Etc. - Alex - 01-07-2014

Couldn't you just go to task manger and end the rat from there


RE: Checking for Keyloggers/Rats/Etc. - Wonder - 01-07-2014

(01-07-2014, 01:47 PM)Alex Wrote: Couldn't you just go to task manger and end the rat from there

For some shitty ones you probably could, but a good rat makes it self hidden.


RE: Checking for Keyloggers/Rats/Etc. - Alex - 01-07-2014

(01-07-2014, 10:08 PM)Wonder Wrote: For some shitty ones you probably could, but a good rat makes it self hidden.

A lot of rats make there names sounds like popular files so it's tricky.


RE: Checking for Keyloggers/Rats/Etc. - Wonder - 01-08-2014

(01-07-2014, 10:43 PM)Alex Wrote: A lot of rats make there names sounds like popular files so it's tricky.

Yeah i've had that experience as well, those are hard to weed out sometimes.