[C/C++] KSnoop [ v0.16 ] (Entwicklung voruebergehend eingestellt)

Dieses Thema im Forum "Projekte / Codes" wurde erstellt von Kolazomai, 17. Oktober 2007 .

  1. 3. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Hey!

    'make' vorher ausfuehren
    Du brauchst aber GLib und libCURL, und deren Development-files (benutz deinen Packetmanager)!

    Mfg,

    Kolazomai
     
  2. 3. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    ok done ...


    aber bekomme jetzt ne fehlermeldung

    Code:
    xXxXxX:~/ksnoop$ make
    gcc -c main.c -o main.o -Wall -W -std=c99 -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -fshort-enums -fno-common -Dinline= -g3 -O2 `pkg-config --cflags glib-2.0 gthread-2.0` `curl-config --cflags`
    /bin/sh: line 1: pkg-config: command not found
    /bin/sh: line 1: curl-config: command not found
    main.c:20:18: glib.h: No such file or directory
    main.c:21:23: curl/curl.h: No such file or directory
    In file included from main.c:24:
    parse_args.h:22:18: glib.h: No such file or directory
    In file included from load.h:22,
     from parse_args.h:24,
     from main.c:24:
    ftp.h:22:18: glib.h: No such file or directory
    ftp.h:23:23: curl/curl.h: No such file or directory
    In file included from load.h:22,
     from parse_args.h:24,
     from main.c:24:
    ftp.h:35: error: syntax error before "gchar"
    ftp.h:35: warning: no semicolon at end of struct or union
    ftp.h:37: warning: type defaults to `int' in declaration of `url'
    ftp.h:37: warning: data definition has no type or storage class
    ftp.h:38: error: syntax error before '*' token
    ftp.h:38: warning: type defaults to `int' in declaration of `path'
    ftp.h:38: warning: data definition has no type or storage class
    ftp.h:40: error: syntax error before '*' token
    ftp.h:40: warning: type defaults to `int' in declaration of `curl'
    ftp.h:40: warning: data definition has no type or storage class
    ftp.h:41: error: syntax error before "res"
    ftp.h:41: warning: type defaults to `int' in declaration of `res'
    ftp.h:41: warning: data definition has no type or storage class
    ftp.h:43: error: syntax error before "written"
    ftp.h:43: warning: type defaults to `int' in declaration of `written'
    ftp.h:43: warning: data definition has no type or storage class
    ftp.h:44: error: syntax error before "size"
    ftp.h:44: warning: type defaults to `int' in declaration of `size'
    ftp.h:44: warning: data definition has no type or storage class
    ftp.h:46: error: syntax error before "up_kbs"
    ftp.h:46: warning: type defaults to `int' in declaration of `up_kbs'
    ftp.h:46: warning: data definition has no type or storage class
    ftp.h:47: error: syntax error before "dl_kbs"
    ftp.h:47: warning: type defaults to `int' in declaration of `dl_kbs'
    ftp.h:47: warning: data definition has no type or storage class
    ftp.h:49: error: syntax error before "deleteable"
    ftp.h:49: warning: type defaults to `int' in declaration of `deleteable'
    ftp.h:49: warning: data definition has no type or storage class
    ftp.h:50: warning: type defaults to `int' in declaration of `KsFTP'
    ftp.h:50: warning: data definition has no type or storage class
    ftp.h:53: error: syntax error before '*' token
    ftp.h:53: warning: type defaults to `int' in declaration of `gchar'
    ftp.h:53: error: syntax error before '*' token
    ftp.h:53: warning: type defaults to `int' in declaration of `ftp_new'
    ftp.h:53: warning: data definition has no type or storage class
    ftp.h:54: error: syntax error before '*' token
    ftp.h:56: error: syntax error before "ftp_is_pub"
    ftp.h:56: error: syntax error before '*' token
    ftp.h:56: warning: type defaults to `int' in declaration of `ftp_is_pub'
    ftp.h:56: warning: data definition has no type or storage class
    ftp.h:58: error: syntax error before '*' token
    ftp.h:59: error: syntax error before '*' token
    ftp.h:60: error: syntax error before '*' token
    ftp.h:62: error: syntax error before '*' token
    In file included from parse_args.h:24,
     from main.c:24:
    load.h:32: error: syntax error before '*' token
    In file included from main.c:24:
    parse_args.h:50: error: syntax error before "gchar"
    parse_args.h:50: warning: no semicolon at end of struct or union
    parse_args.h:51: warning: type defaults to `int' in declaration of `out_file'
    parse_args.h:51: warning: data definition has no type or storage class
    parse_args.h:52: error: syntax error before '*' token
    parse_args.h:52: warning: type defaults to `int' in declaration of `path_file'
    parse_args.h:52: warning: data definition has no type or storage class
    parse_args.h:54: error: syntax error before '*' token
    parse_args.h:54: warning: type defaults to `int' in declaration of `range'
    parse_args.h:54: warning: data definition has no type or storage class
    parse_args.h:56: error: syntax error before "scan_threads"
    parse_args.h:56: warning: type defaults to `int' in declaration of `scan_threads'
    parse_args.h:56: warning: data definition has no type or storage class
    parse_args.h:57: error: syntax error before "load_threads"
    parse_args.h:57: warning: type defaults to `int' in declaration of `load_threads'
    parse_args.h:57: warning: data definition has no type or storage class
    parse_args.h:59: error: syntax error before "filesize"
    parse_args.h:59: warning: type defaults to `int' in declaration of `filesize'
    parse_args.h:59: warning: data definition has no type or storage class
    parse_args.h:61: error: syntax error before "con_timeout"
    parse_args.h:61: warning: type defaults to `int' in declaration of `con_timeout'
    parse_args.h:61: warning: data definition has no type or storage class
    parse_args.h:62: error: syntax error before "ftp_timeout"
    parse_args.h:62: warning: type defaults to `int' in declaration of `ftp_timeout'
    parse_args.h:62: warning: data definition has no type or storage class
    parse_args.h:63: warning: type defaults to `int' in declaration of `KsConfig'
    parse_args.h:63: warning: data definition has no type or storage class
    parse_args.h:66: error: syntax error before '*' token
    parse_args.h:66: warning: type defaults to `int' in declaration of `config'
    parse_args.h:66: warning: data definition has no type or storage class
    In file included from main.c:26:
    path.h:22:18: glib.h: No such file or directory
    In file included from main.c:26:
    path.h:31: error: syntax error before '*' token
    path.h:31: error: syntax error before '*' token
    path.h:31: warning: type defaults to `int' in declaration of `path_paths'
    path.h:31: warning: data definition has no type or storage class
    path.h:32: error: syntax error before '*' token
    path.h:32: warning: type defaults to `int' in declaration of `gchar'
    path.h:32: error: syntax error before '*' token
    path.h:32: warning: type defaults to `int' in declaration of `path_url'
    path.h:32: warning: data definition has no type or storage class
    In file included from main.c:27:
    output.h:28: warning: type defaults to `int' in declaration of `gchar'
    output.h:28: error: syntax error before '*' token
    output.h:31: error: syntax error before '*' token
    In file included from main.c:28:
    delete.h:25: error: syntax error before '*' token
    In file included from main.c:30:
    blacklist.h:32: warning: type defaults to `int' in declaration of `gchar'
    blacklist.h:32: error: syntax error before '*' token
    main.c: In function `main':
    main.c:38: warning: implicit declaration of function `g_print'
    main.c:43: warning: implicit declaration of function `g_thread_supported'
    main.c:50: warning: implicit declaration of function `curl_global_init'
    main.c:50: error: `CURL_GLOBAL_WIN32' undeclared (first use in this function)
    main.c:50: error: (Each undeclared identifier is reported only once
    main.c:50: error: for each function it appears in.)
    main.c:57: warning: implicit declaration of function `g_thread_init'
    main.c:79: error: request for member `out_file' in something not a structure or union
    main.c: In function `main_quit':
    main.c:105: warning: implicit declaration of function `curl_global_cleanup'
    make: *** [main.o] Error 1
    
     
  3. 3. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Hat er doch geschrieben du brauchst die development files!
     
  4. 15. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Sers!
    Wollts das Programm heut mal ausprobieren und hab n komisches Problem...
    Wenn ich meine geschriebene Bat starte kommt immer
    Code:
    ]: URL using bad/illegal format or missing URL! [/pub/
    
    Ich hab die Path.txt schon mit Notepad++ geöffnet auf "Konveriere zu UTF-8 ohne BOM geklickt und dann auf speichern...wenn ich die Datei dann aber wieder öffne steht der Punkt wieder bei ANSI ?! kA worans liegt

    Hier meine bat:
    Code:
    @echo off
    KSnoop-v0.16.exe -r 1xx.1xx.1xx.1xx-1xx.1xx.1xx.2xx -o out.txt -p path.txt -t 5 -C 10
    pause
    
    thx schonmal
    mfg J1Lock


    //achja bei notepad++ zeigt er egal was ich anklicke unten inner statusleiste immer
    ANSI as UTF-8
    an.
     
  5. 16. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Hey!

    Es muss auf jeden Fall UTF-8 ohne BOM sein! Du musst die Datei eventuell speichern, wenn du willst, dass Notepad++ das UTF-8-Format uebernimmt, oder erstelle eine neue Datei, die UTF-8 ohne BOM UNIX Format ist, und kopier einfach von der anderen rueber.
    Da es sich anscheinend um die paths.txt handelt: Du kannst mir das Ding auch schicken (PN) und ich wandels dir um

    Mfg,

    Kolazomai
     
  6. 16. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    hm..komisch...
    ich habs mir einfach neu runtergeladen und wieder genauso mit notepad++ gespeichert und jetzt gehts^^
    aber ne kleine andere Frage hab ich nu noch:
    Wie sollte ich die Threads einstellen ?!
    Hab das ding jetzt aufm str0 da kann ich doch ruhig bei den scan-threads >255 nehmen oder ?!
    isn 3mbit.
    bei den Up/Down Threads wollt ichs bei 2 lassen.
     
  7. 16. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Hey!

    Im Prinzip beliebig. Ich wuerde jedoch nicht mit ueber 1500 scannen
    Da ich selber nicht als Scanner taetig bin noch jemals gewesen bin, fragst du hier die falsche Person. Kann dir leider nicht sagen, was gute Einstellungen sind, einfach rumprobieren.
    Im ersten Post steht eine Formel, an der kann man sich einigermassen orientieren, wenn man zeitorientiert scannt.

    Vielleicht kann ein anderer Scanner bitte ein paar Tipps geben?

    Mfg,

    Kolazomai
     
  8. 17. September 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    also ich scanne meistens mit 500 trheads und 50 up und download und finde trozdem jede menge an pubs
     
  9. 5. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Hey!

    KSnoop v0.20 steht an! Bitte posted alle Features, die ihr im Programm haben wollt (alte und neue), in diesen Thread, oder schickt mir eine PM!

    Ich fange mit der neuen Version am Mittwoch an, bis dahin mir bitte eine LISTE mit ALLEN Features, die ihr haben wollt (auch die alten, damit ich eine komplette Liste habe), geben, ich werd die dann einfach zusammenfuegen und das alles einbauen
    Jetzt ist eure Chance, dass ihr das Programm nach EUREN Wuenschen gestaltet!

    Vielen Dank fuer alle Vorschlaege im Vornherein.

    Mfg,

    Kolazomai
     
  10. 5. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    -Ich weiss nicht, was fürn Aufwand das programmiertechnisch wäre, aber wenn man damit wie bei Dfind z.B. nich nur FTP sondern auch Port 1443 (sprich MSSQL) scannen könnte?!

    -Achja und wenn man irgendwie ausschalten könnte, dass er den Speed checkt, mir reichen nur die Scans und Acces-Rechte - Speed mach ich mit Plus Check.

    PS:
    Es ist auch ein bisschen nervig, dass er die FTPs listet wo man keine Rechte hat, wie z.b: sowat:
    1xx.7x.x.xx
    ---------------
    Dir: /incoming/
    Deleteable: No
    Upload: 0.22 KB/s
    Download: 0.00 KB/s
     
  11. 5. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    also, ^^

    das programm checkt ja alle möglichen Paths durch bis er einen gefunden hat und testet den dann auf Speed.

    Kann man nich iwie einstellen, dass er nur die Pfade von den gefundenen Pubs abcheckt und die dann in die results reinschreibt. weil sonst dauert das immer so verdammt lange.

    Und danach kann man ja immernoch mit Grims Ping Plus Check den Speed testen.

    Und kriegst du des nich hin, das KSnoop auch Windows UTF-8 unterstützt.

    Weil immer alles mit Notepad++ zu formatieren ist auch umständlich xD


    mfg
     
  12. 5. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    du kannst die größe vom checkfile ja auf 2 bytes oder so setzen, dass is in nullkommanix übertragen ^^
    ganz deaktivieren geht das nich...

    und das mit UTF-8 wird wohl auch nix, da Kola die Glib verwendet, und es glaub gar nich möglich is, das zu deaktivieren..

    aber was ich kewl finden würd:
    ne datei mit user-pw-kombos, weil es gibt ja genügend pubs mit ftp/ftp, test/test etc.
     
  13. 9. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    *unterschreib*

    ein kleiner login checker wär extrems geil wenn du das schaffst
     
  14. 12. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    ja, da haste Recht, das nervt das er auch die FTPs listet, bei denen man keine Download Rechte hat.

    Aber da kannste trotzdem die results dann durch Plus Check jagen und da dann einfach die Haken setzen bei Down und Up Speed Filtern und dann kriegste die auch raus.


    Wenn ich mit KSnoop Ranges abscanne, steht nix in der console drinn, die bleibt auch leer.

    Aber wenn ich > ksnoop.log anhänge, aktualisiert diese sich und man sieht auch wenn der fertig ist.

    Aber in der Console steht iwie gar nix, auch nich wenn der fertig ist!

    Also ich mach jetzt alles nur noch mit dem zusätzlichem Befehl hier > ksnoop.log

    Da sieht man dann auch alles, was er nich in die results reinschreibt! Und folglich wie weit das Programm ist!!

    trotzdem wäre es gut, wenn das tool, beim Abschließen des Scan Vorgangs noch das am Ende der results vermerken würde.
    Am Besten noch mit dem befehl mit dem es ausgeführt wurde.

    BSP am Ende der results dann:
    FINISH KSnoop-v0.16.exe -r startip-endip -o results.txt -p paths.txt -s 2049 -t 50 -l 50 -C 20
     
  15. 12. Oktober 2008
    Zuletzt von einem Moderator bearbeitet: 14. April 2017
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    No File | xup.in

    Da habt ihr eueren kleinen user/pw checker.
    Für Windows einfach nur MinGW installieren, Pfad zur gcc.exe in make.bat setzen falls nicht C:\MinGW\bin und dann ausführen.

    Für die Unix'ler:
    Einfach per Konsole in den entpackten Ordner:
    /usr/bin/gcc src/*.c -o bin/check -Wall -Llib -lcurl -Iinclude
    chmod +x bin/check

    Es muss eine user.txt für die Usernamen, und eine pass.txt für die Passwörter da sein.
    Ebenfalls muss eine Liste mit den IP-Adressen da sein ( KSnoop's Ouput z.B. ).

    Benutzung wie folgt:

    check.exe --login username asswort --proxy meinproxy.de meine_ip_liste.txt

    --login ist natürlich nur für den Proxy da, also: Kein Proxy, kein Login auf wenn Login gesetzt, logisch oder?
    Die Proxyparameter sind keinesfalls notwendig, was aber notwendig ist, ist die Liste am Ende.

    Viel spaß damit.

    P.S.: Falls euch die Timeout zu lahmarschig ist: check.c Zeile 7 einfach bearbeiten und eine gewünschte MS eintragen und neukompilieren.
     
  16. 13. Oktober 2008
    Zuletzt von einem Moderator bearbeitet: 14. April 2017
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Hey!

    Magste nicht gleich in KSnoop einbauen?
    Dafuer ist es ja OpenSource!

    Mfg,

    Kolazomai
     
  17. 13. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Ne danke, dann darf ich mich ja erstmal einarbeiten. Wird ja net so schwer sein beides hintereinander zu starten: ./p1 parambla;./p2 output.txt
     
  18. 13. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Das problem für die meisten wird sein, das teil überhaupt erstmal zu compilen

    edit: is ja schon compiled :S
    wieso haste das eig. mit libcurl gemacht? wenn man nur pw/user checkt und sonst nix hätte man doch auch sockets nehmen können.
     
  19. 13. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    weil ich keine lust hab den ftp kram zu parsen, select zu benutzen und mir curl außerdem alles bietet was ich brauche?
     
  20. 17. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    bestünde interesse an einem web-interface?
    damit könnte man proxy-support und ksnoop-main kombinieren und man hat ein gui
     
  21. 17. Oktober 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Also ich finde das wäre geil

    brauch zwar net unbedingt eine gui, aber dann kann man auch von überall aus, den Scanvorgang bequem abchecken!
     
  22. 1. November 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    joa da ich bin da der gleichen meinung und wie sieht es aus ob ksnoop nicht gleich den festplattenspeicher der pubs anzeigen könnte? wäre das mach bar
     
  23. 1. November 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Man kann dei Festplattenkapazität ohne die notwendigen Rechte nicht herausbekommen und auf den meisten Pubs hat man nur Lese- und Schreibrechte.
     
  24. 26. Dezember 2008
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Kann ma bitter wer seine ips.txt Posten?

    Also im Format der Ranges.
    Kommt bei mir immer: Is no valid IP
    Is no valid range
     
  25. 26. Dezember 2008
    Zuletzt von einem Moderator bearbeitet: 14. April 2017
    AW: KSnoop - Snooping around on FTP Servers [ v0.16 ]

    Einfach mit dem Notepad++ konvertieren
    Bild
     
  26. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.