Skip to content

Instantly share code, notes, and snippets.

View jimsmith's full-sized avatar

jimsmith

View GitHub Profile
@federicosan
federicosan / cleaning_malware_wordpress.md
Created December 23, 2016 20:58 — forked from sandys/cleaning_malware_wordpress.md
cleaning malware from wordpress

Look for any outbound port 80 connections with:

lsof -i :80

You will see your own apache server in that list too, but keep an eye for other stuff.

usually, attacks like this are very obvious in the output of:

ps faux

@bhargavpanth
bhargavpanth / local_host.txt
Last active January 10, 2017 19:47
Find all hosts on local network
Find all devices
----------------
for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null;
[ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ;
done
Using nmap
----------
@RusHibaM
RusHibaM / gitstats.sh
Created January 10, 2017 19:11 — forked from xeoncross/gitstats.sh
Git - calculate how many lines of code were added/changed by someone
# Run this in the project repo from the command-line
# http://stackoverflow.com/a/4593065/99923
git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'