Forfatterarkiv: mike

How to get rid of big ugly spiders

Fetch some WD-40 and a lighter Turn on the lighter about 20 cm’s from the spider, and spray it with the wd40 for 2-3 seconds, now the spider will be gone and if not give it a couple of seconds. … Læs resten

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

C operator precedence

Table 4.11 lists all the C operators in order of decreasing precedence. Operators on the same line have the same precedence. Table 4.11. C operator precedence. Level Operators 1 () [] -> . 2 ! ~ ++ — * (indirection) … Læs resten

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

C eksempel med argv, argc og system()

#include <stdio.h> int main(int argc, char **argv) { if (argc < 2) { printf(“Hva har du kog i fister?\n”); } else if (!strcmp(argv[1], “-GiB”)) { printf(“Gibibyte\n”); system(“df -h”); } else if (!strcmp(argv[1], “-GB”)) { printf(“Gigabyte\n”); system(“df -H”); } else { … Læs resten

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

Creating users in mysql

root@chilibeans:~# mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4023 to server version: 3.23.54 Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer. mysql> create … Læs resten

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

Taking command line arguments in C

bash$ cat vladimirr.c int main(argc, argv) int argc; char **argv; { int i; for (i=0; i<=argc; i++) { printf(“Argument[%i]=%s\n”,i,argv[i]); } } bash$ cc vladimirr.c -o vladimirr bash$ ./vladimirr er en gammel torsk som stinker til c Argument[0]=./vladimirr Argument[1]=er Argument[2]=en Argument[3]=gammel … Læs resten

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

Mousewheel in Xfree

Add the ‘Option “ZAxisMapping” “4 5″‘ to your Mouse section, could look like this (on freebsd, might me a little different elsewhere but the zaxis part should be similare) Section “InputDevice” Identifier “Mouse0” Driver “mouse” Option “ZAxisMapping” “4 5” Option … Læs resten

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

Smb mounts in FreeBSD

Add the following to your kernel options NETSMB options SMBFS options NETSMBCRYPTO options LIBMCHAIN options LIBICONV compile,install, boot and mount with this cmd peanut# mount_smbfs -I 192.168.10.122 //mikr@ost/c$ /mnt Password:

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

Penetrating windows #2 (dcom rpc bof)

Files: Source: http://base.fujang.dk/files/mike/dcom.c (include <error.h> removed) Freebsd binary: http://base.fujang.dk/files/mike/dcom Windows binary: http://base.fujang.dk/files/mike/dcom.exe + cygwin1.dll The windows binary is compilled by padde (www.beastie.dk) modifications has been made to make it compile under cygwin, the source file avail here was not used … Læs resten

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

Source audit

IF you have the source code you can check out the following links: http://www.dwheeler.com/flawfinder/ http://www.cigital.com/its4/ http://www.securesoftware.com/download_form_rats.htm http://www.cs.wisc.edu/~bart/fuzz/fuzz.html (MAYBE?) ELSIF YOU ONLY HAVE THE BINARY THEN Checkout the blackhat presintations like: http://www.blackhat.com/html /bh-europe-00/bh-europe-00-speakers.html#HalVar

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

Remove ^M from windoze files

Taken from FreeBSD quotes Need to remove all those ^M characters from a DOS file? Try col -bx < dosfile > newfile

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