elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Python] PasteBin Uploader
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Python] PasteBin Uploader  (Leído 3,485 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Python] PasteBin Uploader
« en: 16 Octubre 2011, 02:52 am »

Un simple programa para subir codigos a pastebin

Código
  1. #!usr/bin/python
  2. #PasteBin Uploader (C) Doddy Hackman 2011
  3.  
  4. import urllib2,sys,re
  5.  
  6. nave = urllib2.build_opener()
  7. nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')]
  8.  
  9. def tomar(web,vars) :
  10. return nave.open(web,vars).read()
  11.  
  12. def head():
  13. print "\n-- == PasteBin Uploader == --\n\n"
  14.  
  15. def copyright():
  16. print "\n(C) Doddy Hackman 2011\n"
  17. sys.exit(1)
  18.  
  19. def sintax():
  20. print "[+] paste.py <file> <title> <perl/python/ruby/php>\n"
  21.  
  22. def chubir(file,title,type):
  23. print "[+] Uploading file\n"
  24. try:
  25.  lineas = open(file,"r").readlines()
  26. except:
  27.  print "[-] Error open file\n"
  28.  copyright()
  29. lin = "".join(lineas)
  30. try:
  31.  code = tomar("http://pastebin.com/api_public.php","paste_code="+str(lin)+"&paste_name="+title+"&paste_format="+type+"&paste_expire_date=N&paste_private=public&submit=submit")
  32. except:
  33.  print "[-] Page offline\n"
  34. if re.findall("Bad API request",code):
  35.  print "[-] Error uploading file\n"
  36. else:
  37.  print "[+] Enjoy : ",code+"\n"
  38.  copyright()
  39.  
  40. head()
  41. if len(sys.argv) != 4 :
  42. sintax()
  43. else :
  44. chubir(sys.argv[1],sys.argv[2],sys.argv[3])
  45. copyright()
  46.  
  47. # The End


En línea

Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.788



Ver Perfil
Re: [Python] PasteBin Uploader
« Respuesta #1 en: 9 Febrero 2012, 15:03 pm »

Tus scripts uploaders me encantan, entre otros xD

Código:
paste.py test.txt titulo DOS

muy bueno!



En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Perl] PasteBin Uploader
Scripting
BigBear 0 2,220 Último mensaje 8 Octubre 2011, 16:55 pm
por BigBear
[Ruby] PasteBin Uploader
Scripting
BigBear 0 1,943 Último mensaje 16 Octubre 2011, 02:50 am
por BigBear
Pastebin no quiere que 'hackers' publiquen datos sensibles
Noticias
wolfbcn 1 1,704 Último mensaje 3 Abril 2012, 18:53 pm
por do-while
Anonymous debuta su alternativa a Pastebin
Noticias
wolfbcn 6 3,628 Último mensaje 24 Abril 2012, 18:56 pm
por Foxy Rider
[RUBY] [WINDOWS] Pastebin Uploader
Scripting
Eleкtro 0 2,222 Último mensaje 10 Diciembre 2012, 21:02 pm
por Eleкtro
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines