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

 

 


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


  Mostrar Temas
Páginas: 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14 15 16 17 18 19
41  Seguridad Informática / Hacking / Si saben mi ip me pueden hackear? en: 23 Abril 2017, 19:27 pm
Sé que esta pregunta es muy repetida y tal.. bueno hace poco hablando compañero me dijo que simplemente sacando mi ip las posibilidades que accediera a mi ordenador eran muy altas pero no sé que tan cierto sea. Entonces mi pregunta es existe alguna posibilidad de que alguien unicamente sabiendo mi ip pueda acceder o tener acceso a mi computador? Esa es la pregunta lo unico que se me ocurre que podria hacer es usar nmap escaneo de puertos y ver cuales estan abiertos, en caso de tener algun abierto ver cual tengo a la escucha y si se dieran estos dos casos, encontrar una supuesta vulnerabilidad para mi software actualizado por lo que me parece poco probable que sucediese.
42  Seguridad Informática / Análisis y Diseño de Malware / Me pueden infectar mi ordenador usando un pdf? en: 12 Abril 2017, 01:50 am
Podría usar alguien un pdf para acceder a mi ordenador teniendo el adobe actualizado y usando chrome para abrir el pdf?
43  Programación / .NET (C#, VB.NET, ASP) / Como extraer los items de un combobox en c# en: 5 Abril 2017, 20:47 pm
Hola lo que hago es obtener el ultimo elemento del combobox:
Código:
int ultimo = playerList.Items.Count - 1;
playerList.SelectedIndex = ultimo;
var valor = playerList.SelectedValue;

Pero ahora lo que quiero es extrar los elementos en ese valor ejemplo:
Código:
"Hola,padre,nuestro"
Código:
--> por medio de valor.
string a = "hola"
string b = "padre"
string c = "nuestro"
44  Programación / .NET (C#, VB.NET, ASP) / Como obtengo el nombre de un recurso embedido o la ruta? en: 1 Abril 2017, 01:38 am
Mi pregunta como puedo obtener la ruta o nombre de un recursos embedido ej:
Código:
Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
            //Application.Run(new Form1());      

        static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("EmbedAssembly.helloworld.exe"))
            {
                byte[] assemblyData = new byte[stream.Length];
                stream.Read(assemblyData, 0, assemblyData.Length);
                return Assembly.Load(assemblyData);
            }
        }

Ya que lo llamare por medio de la funcion
 RunInterna("la ruta del recurso embedido", "pass");
45  Programación / Scripting / Ayuda con este crypter en autoit en: 31 Marzo 2017, 20:24 pm
Hola estoy intentando probar un crypter para autoit lo que hago es poner mi programa helloworld pero nunca me abre el programa que estoy haciendo mal.

Código:
http://pastebin.com/Rchvr96P
http://pastebin.com/4K5B6d6r
46  Programación / .NET (C#, VB.NET, ASP) / Ayuda con este pequeño crypter en c# en: 30 Marzo 2017, 01:31 am
Hola estoy modificando un facilito crypter en c# obviamente todos sabemos que c# para crypters no es lo suyo pero haciendolo el codigo es:
Código
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. using System.IO;
  8.  
  9. namespace Crypter
  10. {
  11.    class Program
  12.    {
  13. [STAThread]
  14.        static void Main(string[] args)
  15.        {
  16.            //No Arguments -> Exit
  17.            if (args.Length < 2)
  18.            {
  19.                Console.WriteLine("Syntax: crypter.exe <Exe/Dll to get Encrypted> <Password> (Optional: output file name)");
  20.                Environment.Exit(0);
  21.            }
  22.  
  23.            String file = args[0];
  24.            String pass = args[1];
  25.            String outFile = "Crypted.exe";
  26.  
  27.            //If Output Name is specified -> Set it
  28.            if (args.Length == 3)
  29.            {
  30.                outFile = args[2];
  31.            }
  32.  
  33.            //File doesn't exist -> Exit
  34.            if (!File.Exists(file))
  35.            {
  36.                Console.WriteLine("[!] The selected File doesn't exist!");
  37.                Environment.Exit(0);
  38.            }
  39.  
  40.            //Everything seems fine -> Reading bytes
  41.            Console.WriteLine("[*] Reading Data...");
  42.            byte[] plainBytes = File.ReadAllBytes(file);
  43.  
  44.            //Yep, got bytes -> Encoding
  45.            Console.WriteLine("[*] Encoding Data...");
  46.            byte[] encodedBytes = encodeBytes(plainBytes, pass);
  47.  
  48.            Console.Write("[*] Save to Output File... ");
  49.            File.WriteAllBytes(outFile, encodedBytes);
  50.            Console.WriteLine("Done!");
  51.  
  52.            Console.WriteLine("\n[*] File successfully encoded!");
  53.        }
  54. private static byte[] encodeBytes(byte[] bytes, String pass)
  55. {
  56. byte[] XorBytes = Encoding.Unicode.GetBytes(pass);
  57.  
  58. for (int i = 0; i < bytes.Length; i++)
  59. {
  60. bytes[i] ^= XorBytes[i % XorBytes.Length];
  61. }
  62.  
  63. return bytes;
  64. }
  65. }
  66. }

El stub:
Código
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6.  
  7. using System.IO;
  8. using System.Text;
  9. using System.Reflection;
  10. using System.Diagnostics;
  11.  
  12. namespace Stub
  13. {
  14.    static class Program
  15.    {
  16.        /// <summary>
  17.        /// MAIN
  18.        /// </summary>
  19.        [STAThread]
  20.        static void Main()
  21.        {
  22.            Application.EnableVisualStyles();
  23.            Application.SetCompatibleTextRenderingDefault(false);
  24.            //Application.Run(new Form1());
  25.  
  26.            //Set Payload File and Password HERE
  27.            RunInternalExe("C:/Users/Androide/Desktop/test/o.txt", "1234");
  28.        }
  29.  
  30.        private static void RunInternalExe(string exeName, String pass)
  31.        {
  32.            //Verify the Payload exists
  33.            if (!File.Exists(exeName))
  34.                return;
  35.  
  36.            //Read the raw bytes of the file
  37.            byte[] resourcesBuffer = File.ReadAllBytes(exeName);
  38.  
  39.            //Decrypt bytes from payload
  40.            byte[] decryptedBuffer = null;
  41.            decryptedBuffer = decryptBytes(resourcesBuffer, pass);
  42.  
  43.            //If .NET executable -> Run
  44.            if(Encoding.Unicode.GetString(decryptedBuffer).Contains("</assembly>"))
  45.            {
  46.                //Load the bytes as an assembly
  47.                Assembly exeAssembly = Assembly.Load(decryptedBuffer);
  48.  
  49.                //Execute the assembly
  50.                object[] parameters = new object[1];                //Don't know why but fixes TargetParameterCountException
  51.                exeAssembly.EntryPoint.Invoke(null, parameters);
  52.            }
  53.        }
  54.  
  55.        /// <summary>
  56.        /// Decrypt the Loaded Assembly Bytes
  57.        /// </summary>
  58.        /// <param name="payload"></param>
  59.        /// <returns>Decrypted Bytes</returns>
  60.        private static byte[] decryptBytes(byte[] bytes, String pass)
  61.        {
  62.            byte[] XorBytes = Encoding.Unicode.GetBytes(pass);
  63.  
  64.            for (int i = 0; i < bytes.Length; i++)
  65.            {
  66.                bytes[i] ^= XorBytes[i % XorBytes.Length];
  67.            }
  68.  
  69.            return bytes;
  70.        }
  71.    }
  72. }
  73.  
Pero cuando pongo abro el stub se me cierra y no me abre mi fichero y lo encripte correctamente y todo que estoy haciendo mal?
47  Foros Generales / Foro Libre / Pequeño grupo en telegram para entusisastas de la programacion en: 28 Marzo 2017, 20:06 pm
Hola he creado un pequeño grupo en telegram para poner en practica más la programación y poder hacer aportes más a menudo al foro.
El grupo es:
https://t.me/joinchat/AAAAAAuGJ94-9LBIJM3lPQ
Sino es buena idea o el post incumple algo me lo decis para la proxima tener mas cuidado. Es solamente para aquellos que empiezan puedan aprender lo básico y hacer aportes.
48  Seguridad Informática / Bugs y Exploits / Inyeccion de código y persistencia - Zero Day en: 26 Marzo 2017, 14:28 pm
Este técnica permite al atacante inyectar cualquier dll a cualquier proceso.. la inyeccion ocurre durante el arranque del sistema de la victima, dando al atacante poder para controlar los procesos y no hay manera de protegerse del mismo.
Esta técnica puede persistir incluso despues del reinicio.

Para mas info:
https://cybellum.com/doubleagentzero-day-code-injection-and-persistence-technique/
49  Programación / .NET (C#, VB.NET, ASP) / Renombrar una clave de registro usando c# en: 25 Marzo 2017, 21:28 pm
Hola hago esto:
Código
  1. using Microsoft.Win32.SafeHandles;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Runtime.InteropServices;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8.  
  9. namespace ConsoleApplication7
  10. {
  11.    class Program
  12.    {
  13.        private static readonly IntPtr HKEY_LOCAL_MACHINE = new IntPtr(-2147483646);
  14.        [DllImport("advapi32")]
  15.        public static extern int RegRenameKey(SafeRegistryHandle hKey, [MarshalAs(UnmanagedType.LPWStr)] string oldname,
  16.        [MarshalAs(UnmanagedType.LPWStr)] string newname);
  17.        static void Main(string[] args)
  18.        {
  19.  
  20.            SafeRegistryHandle hKey = null;
  21.            hKey = new SafeRegistryHandle(HKEY_LOCAL_MACHINE,true);
  22.            RegRenameKey(hKey, "\\SOFTWARE\\Company", "\\SOFTWARE\\Compa");
  23.            Console.ReadLine();
  24.  
  25.        }
  26.    }
  27. }

Pero no lo renombra no se porque.
50  Programación / Programación C/C++ / Es posible renombrar una clave de registro? en: 25 Marzo 2017, 18:29 pm
Se puede renombrar una clave de registro? No digo crear o borrar sino cambiarla de nombre? Tiene que ser en algun lenguaje de programacion.
Páginas: 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14 15 16 17 18 19
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines