Which application is using a Linux network port?
by Dervish on Feb.01, 2011, under Hacker
Use: netstat -tlnp | grep port
Example:
[root@trioxin2 jhopkins]# netstat -tlnp | grep 80
tcp 0 0 :::80 :::* LISTEN 4246/httpd
The above example reveals that the httpd process with a PID of 4246 is running on port 80.
To verify, you can run the ps command and grep for the application name or PID:
[root@trioxin2 jhopkins]# ps -ef | grep 4246
root 4246 1 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4249 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4250 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4251 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4252 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4253 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4254 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4255 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
apache 4256 4246 0 13:35 ? 00:00:00 /usr/sbin/httpd
Fedora 14 and Broadcom 4312 Wireless Install on HP Mini 110
by Dervish on Jan.03, 2011, under Hacker
ERROR: Firmware file “b43/ucode5.fw” not found or load failed.
Ignore drivers in /lib/firmware/b43-open and perform the following:
1. yum install b43-fwcutter wget
2. wget downloads.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
3. tar xjf broadcom-wl-4.150.10.5.tar.bz2
4. cd broadcom-wl-4.150.10.5/driver
5. b43-fwcutter -w /lib/firmware/ wl_apsta_mimo.o
to install all firmware into /lib/firmware/b43
6. reboot
HP Mini 110 Laptop should boot and come up with wireless functioning.
Were these instructions helpful? Please click the Google links below.
How To Change MAC Address
by Dervish on Nov.11, 2010, under Uncategorized
f4:43:2f:a3:93:95 = new MAC
# ifconfig eth0 down
# ifconfig eth0 hw ether f4:43:2f:a3:93:95
# ifconfig eth0 up
Generate Random MAC Address
by Dervish on Nov.11, 2010, under Uncategorized
From a Linux BASH command line:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
Example:
[neo@trinity ~]$ openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
28:97:1c:70:73:4d
Teach A Man To Fish
by Dervish on Apr.16, 2010, under Uncategorized
Give a man a fish; you have fed him for today. Teach a man to fish; and if he doesn’t beat you with the pole, he will resent you for a lifetime.
