Powered By Blogger

الأحد، 30 أغسطس 2020

Bypass Hardware Firewalls

This is just a collection of links about my DEF CON 22 presentation, and the two tools I released:

Slides:
http://www.slideshare.net/bz98/defcon-22-bypass-firewalls-application-white-lists-secure-remote-desktops-in-20-seconds

Tools:
https://github.com/MRGEffitas/Write-into-screen
https://github.com/MRGEffitas/hwfwbypass

Presentation video from Hacktivity:
https://www.youtube.com/watch?v=KPJBckmhtZ8

Technical blog post:
https://blog.mrg-effitas.com/bypass-hardware-firewalls-def-con-22/

Have fun!




Related articles
  1. Pentest Recon Tools
  2. Hack And Tools
  3. Hacking Tools Hardware
  4. Hacker Tools For Ios
  5. Pentest Tools Nmap
  6. Github Hacking Tools
  7. Pentest Tools For Windows
  8. Hack Tools For Windows
  9. Growth Hacker Tools
  10. How To Make Hacking Tools
  11. Hacking Tools Hardware
  12. Hack Tools
  13. Pentest Tools For Windows
  14. Hacking Tools Pc
  15. Hacking Apps
  16. Tools Used For Hacking
  17. Pentest Tools Website
  18. Hacker Tools Apk Download
  19. Beginner Hacker Tools
  20. Hack Tool Apk
  21. Pentest Tools Apk
  22. New Hack Tools
  23. Hacking Tools Windows
  24. Pentest Tools List
  25. Free Pentest Tools For Windows
  26. Pentest Tools Website Vulnerability
  27. Pentest Tools For Mac
  28. Hacking Tools For Beginners
  29. Hak5 Tools
  30. Beginner Hacker Tools
  31. Growth Hacker Tools
  32. What Is Hacking Tools
  33. Hack Tool Apk
  34. What Are Hacking Tools
  35. Hacker Tools Software
  36. Hacker Tools For Mac
  37. Hacking Tools For Windows 7
  38. Kik Hack Tools
  39. Hacking Tools 2020
  40. Beginner Hacker Tools
  41. Hacker Tools Free
  42. Hack Tools For Windows
  43. Pentest Tools Website
  44. Hacker Tools Free Download
  45. Hacking Tools Mac
  46. Hack Tools Download
  47. Hacker Tools Apk
  48. Hack Website Online Tool
  49. Hacking Tools
  50. Hack Tools Pc
  51. Pentest Box Tools Download
  52. Bluetooth Hacking Tools Kali
  53. Hack Tools
  54. Hacking Tools 2020
  55. Growth Hacker Tools
  56. Hack Tools
  57. Hacking Tools Github
  58. Hacker Tools Github
  59. Hacking Tools Pc
  60. Hacker Tools Software
  61. Nsa Hacker Tools
  62. Hacker Tools For Windows
  63. Hacking Tools And Software
  64. Hackrf Tools
  65. Hacking Tools
  66. Pentest Tools Review
  67. Hacker Tools For Mac
  68. Hack Tools
  69. New Hacker Tools
  70. Hacker Tools Software
  71. New Hacker Tools
  72. Hack And Tools
  73. Hack Tools For Mac
  74. Pentest Tools Alternative
  75. Hack Tools
  76. Wifi Hacker Tools For Windows
  77. Hacker Tools For Mac
  78. How To Install Pentest Tools In Ubuntu
  79. Pentest Tools List
  80. Hacking Tools Download
  81. Pentest Tools Alternative
  82. Hacking Tools 2020
  83. Pentest Tools For Windows
  84. World No 1 Hacker Software
  85. Pentest Box Tools Download
  86. Hacker Tools 2019
  87. Hack Tools
  88. Pentest Tools Android
  89. Free Pentest Tools For Windows
  90. Pentest Tools Linux
  91. Hacking Tools Software
  92. Hacker Tools For Windows
  93. Pentest Tools For Android
  94. Hacking Tools Windows
  95. Android Hack Tools Github
  96. Ethical Hacker Tools
  97. Hak5 Tools
  98. Free Pentest Tools For Windows
  99. Hacking Tools Online
  100. Hacking Tools Windows

Meta-aprendizaje Con GPT-3: Aprender A Sumar Leyendo O A Escribir Código Fuente Con Servicios Cognitivos De Texto Predictivo.

En el equipo de Ideas Locas nos encanta hacer proyectos y trabajar con tecnologías de Inteligencia Artificial. Dentro de este tan amplio campo, los servicios cognitivos de NLP (Natural Language Processing) están adquiriendo cada vez mayor importancia. Gracias a ellos podemos empezar a crear interfaces de usuario que humanizan la interacción persona-ordenador, con todas las ventajas que ello supone. 

Figura 1: Meta-aprendizaje con GPT-3: Aprender a sumar leyendo
o a escribir código fuente con servicios cognitivos de Texto Predictivo.

Dentro de este subconjunto de servicios que tratan de alcanzar la paridad humana, hoy os quiero hablar de la generación de texto, o los servicios de Texto Predictivo que ya se usaron en el pasado para construir novelas inventadas de Harry Potter, Drácula o Don Quijote de la Mancha como nos contó nuestro compañeros Fran Ramírez, y tenéis el artidulo de Chema Alonso sobre cómo los servicios de AI han comenzado a superar la paridad humana.

Figura 2: Creación de novelas con herramientas de Texto Predictivo

El problema del Texto Predictivo es aparentemente sencillo de entender. Se trata de crear un modelo entrenado que debe predecir el siguiente elemento del texto basándose en una secuencia previa de caracteres que llevarán a criterios puramente probabilísticos. Por tanto, dada una entrada como  "soy hacke" la salida del modelo debería de ser una "r". A nivel humano esto parece obvio pero la creación y el entrenamiento de estos modelos de IA es realmente complejo, debido a que el lenguaje lo es, aunque no nos demos cuenta como hablantes. 

Figura 3: Modelo de texto predictivo entrenado con probabilidades

Para resolver este problema, el último modelo que ha visto la luz ha sido GPT-3  (con permiso de GShard  de Google que lleva escasos días público) y ha sido desarrollado por OpenAI, empresa de Elon Musk. Es el pistoletazo de salida de una nueva generación de modelos gigantescos  - para que os hagáis una pequeña idea, GPT-3 cuenta con 175.000 millones de parámetros - desarrollados y entrenados por grandes empresas tecnológicas para ser servidos a los usuarios a través de APIs. 

Figura 4: GPT-3 en GitHub

Estos modelos tienen muchas utilidades de todo tipo, y algunos ejemplos los tenéis en el libro de Machine Learning aplicado a Ciberseguridad: Técnicas y ejemplos en la detección de amenazas de nuestros compañeros Fran Ramírez, Carmen Torrano, Sergio Hernández y José Torres. Son tan potentes que estas APIs son privadas y se debe rellenar un formulario detallando los usos que se le va a dar junto con los posibles riesgos, para luego esperar que sea aceptado, ya que podrían usarse para cosas que podrían considerarse negativas.

Figura 5: Libro de Machine Learning aplicado a Ciberseguridad

Puede resultar algo exagerado para un modelo que únicamente predice la siguiente letra, ¿verdad?. Lo que se ha observado con GPT-3, que ya se empezaba a intuir con su hermano pequeño GPT-2, es que es capaz de desarrollar un meta-aprendizaje, es decir, ha aprendido a aprender. Esto es resultado de haber sido entrenado con prácticamente la totalidad de los textos que hay en la red y es aquí es donde reside la potencia de este modelo.

Figura 6: Formulario para ser aceptado


Comúnmente, un modelo se desarrolla para resolver un problema específico. Sin embargo, GPT-3 ha cambiado radicalmente esta mentalidad, ya que ha sido entrenado para una tarea general y son los usuarios los que han ido encontrando distintos casos de uso en los que el modelo se desenvuelve a la perfección. Vamos a ver algunos ejemplos en diferentes ámbitos.

Generación de texto

La generación de texto es el problema fundamental para el cual el modelo ha sido entrenado, por tanto, su desempeño en esta tarea es espectacular. Es capaz de generar contenido escrito de forma que el lector ni se percate de que el texto ha sido generado por un modelo de IA. Pero mucho ojo con esto, porque puede ser utilizado para generar desinformación y ser usado en Fake News.


Operaciones matemáticas

El modelo es capaz de predecir que después de la secuencia "3 + 3 = " el carácter más probable es el "6". ¿Esto significa que sepa sumar? Realmente no, es únicamente cuestión de probabilidad, pero sí que puede dar respuesta a operaciones matemáticas de esta forma... ¿se podrían hacer cálculos matemáticos seguros?

Escribir código

GPT-3 es capaz de escribir código en distintos lenguajes de programación mediante una descripción en lenguaje natural, consiguiendo incluso el desarrollo de frontales web o de redes neuronales.




Estos son únicamente unos ejemplos de lo que GPT-3 es capaz de lograr en los meses que lleva en producción, y puedes ver muchos más ejemplos de aplicación de GPT-3 en este enlace de GPT-3 examples. Nadie sabe aún cuáles son los límites de estos modelos y que nos depararán los próximos que salgan a la luz pero, ¿a que ya no resulta tan exagerado poner las APIs privadas?

Autor: Pablo Saucedo (@psaucedo)

Related word

السبت، 29 أغسطس 2020

wpCrack - Wordpress Hash Cracker


Wordpress Hash Cracker.

Installation
git clone https://github.com/MrSqar-Ye/wpCrack.git


Video


Related articles


  1. Pentest Tools Apk
  2. Hack Tools Download
  3. Pentest Tools Apk
  4. Pentest Tools Find Subdomains
  5. Hacking Tools For Windows 7
  6. Nsa Hack Tools Download
  7. Hacking Tools Pc
  8. Pentest Tools Linux
  9. Pentest Tools For Windows
  10. Best Hacking Tools 2019
  11. Hacker Tools 2020
  12. Hacker Tools 2019
  13. Hacking Tools 2019
  14. Pentest Tools Find Subdomains
  15. Hacker Hardware Tools
  16. Hack Tools
  17. Hacking Tools Free Download
  18. Pentest Tools For Ubuntu
  19. Beginner Hacker Tools
  20. Hack Tools For Pc
  21. Hacker Tools Hardware
  22. Free Pentest Tools For Windows
  23. Hacking Tools Windows
  24. Hack Apps
  25. Usb Pentest Tools
  26. Pentest Tools Find Subdomains
  27. Physical Pentest Tools
  28. Black Hat Hacker Tools
  29. Hacker Tools Mac
  30. Hacker Tool Kit
  31. Hack And Tools
  32. Hack Tools
  33. Pentest Tools Nmap
  34. Best Hacking Tools 2020
  35. Hacking Tools Download
  36. Hacker Tools For Windows
  37. Hack App
  38. Hackers Toolbox
  39. Pentest Tools List
  40. Pentest Tools Website
  41. Nsa Hack Tools Download
  42. Hacker Tools Github
  43. Kik Hack Tools
  44. Hacker Tools List
  45. Hacking Tools For Windows
  46. Underground Hacker Sites
  47. Hack Tool Apk
  48. Hack Tools For Windows
  49. Hack Tools Download
  50. Hacking Tools For Pc
  51. Hackers Toolbox
  52. Pentest Tools Find Subdomains
  53. Game Hacking
  54. Hacker Tools For Pc
  55. Hack Tools Download
  56. Hacker Tools Software
  57. How To Install Pentest Tools In Ubuntu
  58. Hacking App
  59. Easy Hack Tools
  60. Tools 4 Hack
  61. Ethical Hacker Tools
  62. Hacker Tools For Pc

Reversing Some C++ Io Operations

In general decompilers are not friendly with c++ let's analyse a simple program to get familiar with it.
Let's implement a simple code that loads a file into a vector and then save the vector with following functions:

  • err
  • load
  • save
  • main


Lets identify the typical way in C++ to print to stdout with the operator "<<"


The basic_ostream is initialized writing the word "error" to the cout, and then the operator<< again to add the endl.




The Main function simply calls  "vec = load(filename)"  but the compiler modified it and passed the vector pointer as a parámeter. Then it bulds and prints "loaded  " << size << " users".
And finally saves the vector to /tmp/pwd and print "saved".
Most of the mess is basically the operator "<<" to concat and print values.
Also note that the vectors and strings are automatically deallocated when exit the function.


And here is the code:


Let's take a look to the load function, which iterates the ifs.getline() and push to the vector.
First of all there is a mess on the function definition, __return_storage_ptr is the vector.
the ifstream object ifs is initialized as a basic_ifstream and then operator! checks if it wasn't possible to open the file and in that case calls err()
We see the memset and a loop, getline read a cstr like line from the file, and then is converted to a string before pushing it to the vector. lVar1 is the stack canary value.

In this situations dont obfuscate with the vector pointer vec initialization at the begining, in this case the logic is quite clear.



The function save is a bit more tricky, but it's no more than a vector iteration and ofs writing.
Looping a simple "for (auto s : *vec)" in the decompiler is quite dense, but we can see clearly two write, the second write DAT_0010400b is a "\n"



As we see, save implememtation is quite straightforward.




Read more
  1. Hack Tools Online
  2. Hacking Apps
  3. Hacking App
  4. Hacking Tools And Software
  5. Blackhat Hacker Tools
  6. Pentest Automation Tools
  7. Hack Tools
  8. Nsa Hack Tools Download
  9. Hacker Tools Software
  10. Hacking Tools For Games
  11. Pentest Tools For Ubuntu
  12. Hacking Tools For Kali Linux
  13. Hack Apps
  14. Hacker Tools
  15. Hacker Search Tools
  16. Hacker Tools For Mac
  17. Physical Pentest Tools
  18. Hacking Tools Kit
  19. Hack Tool Apk
  20. Hacking Tools 2019
  21. Hacking Tools For Windows Free Download
  22. Hacking Tools For Windows Free Download
  23. Hack Apps
  24. Hacker Tools Free Download
  25. Hack Tools For Games
  26. Pentest Tools Port Scanner
  27. Hacker Search Tools
  28. Hacking Apps
  29. Hacker Tools
  30. Hacker Hardware Tools
  31. Hacking Tools Windows
  32. Hack Website Online Tool
  33. Pentest Tools Port Scanner
  34. Pentest Tools Linux
  35. Pentest Tools Apk
  36. Top Pentest Tools
  37. Black Hat Hacker Tools
  38. Best Hacking Tools 2020
  39. Hack Apps
  40. Pentest Tools Online
  41. Hacking Tools For Beginners
  42. Top Pentest Tools
  43. Pentest Tools For Android
  44. Pentest Tools Tcp Port Scanner
  45. Beginner Hacker Tools
  46. Physical Pentest Tools
  47. Underground Hacker Sites
  48. Hacker Tools
  49. Hack Tool Apk
  50. Easy Hack Tools
  51. Hack Tools Mac
  52. Pentest Tools Online
  53. Pentest Tools Website
  54. Hacking App
  55. What Is Hacking Tools
  56. Hack Tool Apk

الجمعة، 28 أغسطس 2020

inBINcible Writeup - Golang Binary Reversing

This file is an 32bits elf binary, compiled from go language (i guess ... coded by @nibble_ds ;)
The binary has some debugging symbols, which is very helpful to locate the functions and api calls.

GO source functions:
-  main.main
-  main.function.001

If the binary is executed with no params, it prints "Nope!", the bad guy message.

~/ncn$ ./inbincible 
Nope!

Decompiling the main.main function I saw two things:

1. The Argument validation: Only one 16 bytes long argument is needed, otherwise the execution is finished.

2. The key IF, the decision to dexor and print byte by byte the "Nope!" string OR dexor and print "Yeah!"


The incoming channel will determine the final message.


Dexor and print each byte of the "Nope!" message.


This IF, checks 16 times if the go channel reception value is 0x01, in this case the app show the "Yeah!" message.

Go channels are a kind of thread-safe queue, a channel_send is like a push, and channel_receive is like a pop.

If we fake this IF the 16 times, we got the "Yeah!" message:

(gdb) b *0x8049118
(gdb) commands
>set {char *}0xf7edeef3 = 0x01
>c
>end

(gdb) r 1234567890123456
tarting program: /home/sha0/ncn/inbincible 1234567890123456
...
Yeah!


Ok, but the problem is not in main.main, is main.function.001 who must sent the 0x01 via channel.
This function xors byte by byte the input "1234567890123456" with a byte array xor key, and is compared with another byte array.

=> 0x8049456:       xor    %ebp,%ecx
This xor,  encode the argument with a key byte by byte

The xor key can be dumped from memory but I prefer to use this macro:

(gdb) b *0x8049456
(gdb) commands
>i r  ecx
>c
>end
(gdb) c

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x12 18

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x45 69

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x33 51

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x87 135

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x65 101

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x12 18

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x45 69

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x33 51

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x87 135

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x65 101

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x12 18

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x45 69

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x33 51

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x87 135

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x65 101

Breakpoint 2, 0x08049456 in main.func ()
ecx            0x12 18

The result of the xor will compared with another array byte,  each byte matched, a 0x01 will be sent.

The cmp of the xored argument byte,
will determine if the channel send 0 or 1


(gdb) b *0x0804946a
(gdb) commands
>i r al
>c
>end

At this point we have the byte array used to xor the argument, and the byte array to be compared with, if we provide an input that xored with the first byte array gets the second byte array, the code will send 0x01 by the channel the 16 times.


Now web have:

xorKey=[0x12,0x45,0x33,0x87,0x65,0x12,0x45,0x33,0x87,0x65,0x12,0x45,0x33,0x87,0x65,0x12]

mustGive=[0x55,0x75,0x44,0xb6,0x0b,0x33,0x06,0x03,0xe9,0x02,0x60,0x71,0x47,0xb2,0x44,0x33]


Xor is reversible, then we can get the input needed to dexor to the expected values in order to send 0x1 bytes through the go channel.

>>> x=''
>>> for i in range(len(xorKey)):
...     x+= chr(xorKey[i] ^ mustGive[i])
... 
>>> print x

G0w1n!C0ngr4t5!!


And that's the key :) let's try it:

~/ncn$ ./inbincible 'G0w1n!C0ngr4t5!!'
Yeah!

Got it!! thanx @nibble_ds for this funny crackme, programmed in the great go language. I'm also a golang lover.


Continue reading