miércoles, 6 de mayo de 2020

Defcon 2015 Coding Skillz 1 Writeup

Just connecting to the service, a 64bit cpu registers dump is received, and so does several binary code as you can see:



The registers represent an initial cpu state, and we have to reply with the registers result of the binary code execution. This must be automated becouse of the 10 seconds server socket timeout.

The exploit is quite simple, we have to set the cpu registers to this values, execute the code and get resulting registers.

In python we created two structures for the initial state and the ending state.

cpuRegs = {'rax':'','rbx':'','rcx':'','rdx':'','rsi':'','rdi':'','r8':'','r9':'','r10':'','r11':'','r12':'','r13':'','r14':'','r15':''}
finalRegs = {'rax':'','rbx':'','rcx':'','rdx':'','rsi':'','rdi':'','r8':'','r9':'','r10':'','r11':'','r12':'','r13':'','r14':'','r15':''}

We inject at the beginning several movs for setting the initial state:

for r in cpuRegs.keys():
    code.append('mov %s, %s' % (r, cpuRegs[r]))

The 64bit compilation of the movs and the binary code, but changing the last ret instruction by a sigtrap "int 3"
We compile with nasm in this way:

os.popen('nasm -f elf64 code.asm')
os.popen('ld -o code code.o ')

And use GDB to execute the code until the sigtrap, and then get the registers

fd = os.popen("gdb code -ex 'r' -ex 'i r' -ex 'quit'",'r')
for l in fd.readlines():
    for x in finalRegs.keys():
           ...

We just parse the registers and send the to the server in the same format, and got the key.


The code:

from libcookie import *
from asm import *
import os
import sys

host = 'catwestern_631d7907670909fc4df2defc13f2057c.quals.shallweplayaga.me'
port = 9999

cpuRegs = {'rax':'','rbx':'','rcx':'','rdx':'','rsi':'','rdi':'','r8':'','r9':'','r10':'','r11':'','r12':'','r13':'','r14':'','r15':''}
finalRegs = {'rax':'','rbx':'','rcx':'','rdx':'','rsi':'','rdi':'','r8':'','r9':'','r10':'','r11':'','r12':'','r13':'','r14':'','r15':''}
fregs = 15

s = Sock(TCP)
s.timeout = 999
s.connect(host,port)

data = s.readUntil('bytes:')


#data = s.read(sz)
#data = s.readAll()

sz = 0

for r in data.split('\n'):
    for rk in cpuRegs.keys():
        if r.startswith(rk):
            cpuRegs[rk] = r.split('=')[1]

    if 'bytes' in r:
        sz = int(r.split(' ')[3])



binary = data[-sz:]
code = []

print '[',binary,']'
print 'given size:',sz,'bin size:',len(binary)        
print cpuRegs


for r in cpuRegs.keys():
    code.append('mov %s, %s' % (r, cpuRegs[r]))


#print code

fd = open('code.asm','w')
fd.write('\n'.join(code)+'\n')
fd.close()
Capstone().dump('x86','64',binary,'code.asm')

print 'Compilando ...'
os.popen('nasm -f elf64 code.asm')
os.popen('ld -o code code.o ')

print 'Ejecutando ...'
fd = os.popen("gdb code -ex 'r' -ex 'i r' -ex 'quit'",'r')
for l in fd.readlines():
    for x in finalRegs.keys():
        if x in l:
            l = l.replace('\t',' ')
            try:
                i = 12
                spl = l.split(' ')
                if spl[i] == '':
                    i+=1
                print 'reg: ',x
                finalRegs[x] = l.split(' ')[i].split('\t')[0]
            except:
                print 'err: '+l
            fregs -= 1
            if fregs == 0:
                #print 'sending regs ...'
                #print finalRegs
                
                buff = []
                for k in finalRegs.keys():
                    buff.append('%s=%s' % (k,finalRegs[k]))


                print '\n'.join(buff)+'\n'

                print s.readAll()
                s.write('\n'.join(buff)+'\n\n\n')
                print 'waiting flag ....'
                print s.readAll()

                print '----- yeah? -----'
                s.close()
                



fd.close()
s.close()





Related word


  1. Hacking Software
  2. Hacking Mifare
  3. Hacking Web Sql Injection
  4. Growth Hacking Sean Ellis
  5. Hacking Marketing
  6. Python Desde 0 Hasta Hacking - Máster En Hacking Con Python

How To Start | How To Become An Ethical Hacker

Are you tired of reading endless news stories about ethical hacking and not really knowing what that means? Let's change that!
This Post is for the people that:

  • Have No Experience With Cybersecurity (Ethical Hacking)
  • Have Limited Experience.
  • Those That Just Can't Get A Break


OK, let's dive into the post and suggest some ways that you can get ahead in Cybersecurity.
I receive many messages on how to become a hacker. "I'm a beginner in hacking, how should I start?" or "I want to be able to hack my friend's Facebook account" are some of the more frequent queries. Hacking is a skill. And you must remember that if you want to learn hacking solely for the fun of hacking into your friend's Facebook account or email, things will not work out for you. You should decide to learn hacking because of your fascination for technology and your desire to be an expert in computer systems. Its time to change the color of your hat 😀

 I've had my good share of Hats. Black, white or sometimes a blackish shade of grey. The darker it gets, the more fun you have.

If you have no experience don't worry. We ALL had to start somewhere, and we ALL needed help to get where we are today. No one is an island and no one is born with all the necessary skills. Period.OK, so you have zero experience and limited skills…my advice in this instance is that you teach yourself some absolute fundamentals.
Let's get this party started.
  •  What is hacking?
Hacking is identifying weakness and vulnerabilities of some system and gaining access with it.
Hacker gets unauthorized access by targeting system while ethical hacker have an official permission in a lawful and legitimate manner to assess the security posture of a target system(s)

 There's some types of hackers, a bit of "terminology".
White hat — ethical hacker.
Black hat — classical hacker, get unauthorized access.
Grey hat — person who gets unauthorized access but reveals the weaknesses to the company.
Script kiddie — person with no technical skills just used pre-made tools.
Hacktivist — person who hacks for some idea and leaves some messages. For example strike against copyright.
  •  Skills required to become ethical hacker.
  1. Curosity anf exploration
  2. Operating System
  3. Fundamentals of Networking
*Note this sites





Related articles

Web Hacking Video Series #4 MySQL Part 2 (Injection And Coding)

Video Lesson Topics:

  1. Setting up your victim application, databases and lab
  2. Attacking a simple injection with information Schema
  3. Automating your injections with python and beautiful soup
  4. Dealing with various web encoding in Python and PHP
  5. Bypassing LoadFile Size restrictions and automating it
  6. Decrypting sensitive data via PHP and Python interactions
  7. As always me rambling about stupid nonsense :P FTW

Part 2 of Mysql covers the topic of injecting a simple SQL injection example. Starts out slow then combines techniques and moves into more advanced topics. Prior to attempting this lesson make sure you have watched the videos in the previous blog or understand both SQL and basic python coding. I will show how to automate the injection process via python utilizing simple HTML processing abilities of beautiful soup.  I will cover many python libraries for encoding data and calling web based applications. I also talk about how to deal with encrypted data and methods of enumerating files and folders looking for possible implementation issues and attack points to decrypt sensitive data via PHP/Python interaction with whats available on the server. This is the 2nd part of a 3 part series on MySQL for attacking web applications.

Files Needed:
Lab Files
BT5

Video Lesson:

Whats Next:
PHP source code analysis
Recoding PHP applications to fix SQLiMore info
  1. Social Hacking
  2. Hacking Wifi Kali Linux
  3. Cracker Informatico
  4. Como Convertirse En Hacker
  5. Hacking Live
  6. Ethical Hacking Certification
  7. Hacking Informatico
  8. Car Hacking
  9. El Hacker
  10. Ethical Hacking

martes, 5 de mayo de 2020

DeepEnd Research: Analysis Of Trump's Secret Server Story


 We posted our take on the Trump's server story. If you have any feedback or corrections, send me an email (see my blog profile on Contagio or DeepEnd Research)

Analysis of Trump's secret server story...



Read more
  1. Elladodelmal
  2. Elhacker Ip
  3. Curso Hacking Etico Gratis
  4. Hacking Desde Cero
  5. Hacking Etico Curso Gratis
  6. Best Hacking Games

Bloquear Teclado Y Mouse En Windows

Bloquear el teclado y el mouse en Windows hoy en día ya no es un lió, y aunque existen varios métodos para dicho procedimiento queremos presentar un software muy seguro capaz de bloquear en segundos todas las funciones de estos periféricos. No queremos profundizar en las funciones que están alojadas en el sistema de Windows para evitar vueltas innecesarias, simplemente utilizaremos un software que después de estar instalado podemos desactivar y activar de manera rápida.
Creemos que muchos de ustedes que están dando lectura a este bloc ya conocen de manera lógica los procedimientos a utilizar para que funcione a la perfección este complemento, o simplemente perciben otra fórmula sin necesidad de instalar programas, pero si realizamos alguna encuesta sabemos que un 70% de nuestros seguidores desconocen de lleno la existencia de poder bloquear teclado y ratón (mouse) de nuestro ordenador.
https://www.dominatupc.com.co/
Sin más que decir vamos a proceder con el tutorial explicando la forma de cómo se utiliza y la manera correcta de poder asegurar nuestro ordenador para que nadie lo pueda manipular cuando no estamos cerca de la pantalla.
Los pasos a seguir seria descargar e instalar "Keyboard and Mouse" el cual dejamos el enlace al final del artículo, La instalación no es necesario explicar ya que es un programa portable que no necesita conocimiento para el mismo. Cuando ejecutes el software en modo administrador vas a conocer una interfaz simple y ya configurada con una secuencia de botones que trae por defecto los cuales puede modificar a su gusto.
Es fundamental no colocar dígitos difíciles y largos, para cuando quiera desbloquear su ordenador lo haga de manera rápida y sin problemas. No es necesario poner el más (+) ya que el programa automáticamente hace el trabajo, simplemente escribe la serie que recordara de forma normal y cuando lo tengas listo presionamos el botón (Lock) o la letra (L), esperamos 5 segundos y ya todo estará inhabilitado.
Una vez ejecutado, el teclado y Mouse quedaran bloqueados sin poder usarlos como es debido. Es importante tener marcada la casilla "Show Tool Tip" para recibir información en la pantalla sobre las teclas que se deben forzar para desbloquear.
Ya todo queda a su disposición para que pruebes la funcionalidad de Keyboard, que sin duda es un programa muy simple y útil para situaciones donde queremos dejar por unos minutos nuestro ordenador expuesto a personas traviesas. No olvides compartir y seguirnos en las diferentes redes sociales, su ayuda nos hace crecer. También te puede interesar:(Cómo recuperar la clave de inicio de Windows)


Related word

  1. Hacking News
  2. Libros Hacking Pdf
  3. Hacker Definicion Informatica
  4. Hacking Videos
  5. Que Estudiar Para Ser Hacker
  6. Hacking Desde Cero
  7. Hacking Music
  8. Hackers Informaticos Contactar
  9. Hacking Web Technologies Pdf
  10. Curso Seguridad Informatica
  11. Windows Hacking
  12. Que Es Growth Hacking
  13. Nivel Basico
  14. Hacker Blanco
  15. Hacking Usb

viernes, 1 de mayo de 2020

GameFly Experience (Monday Musings 77)

Addendum:
I returned Sekiro and by the next day, GameFly already shipped out a new game! I'm very happy thus far with my GameFly experience.

I decided to take advantage of GameFly's free month trial, and place Sekiro at the top of the list. Given that Sekiro was recently released, and GameFly noting that there's "low availability", I was surprised to see the game shipped out the day after I signed up for the trial! I signed up Monday, shipped Tuesday, and received Friday.

Given the popularity of Sekiro, I thought I had to wait a couple of weeks, at least, to receive the game, so I was pleasantly surprised to see "shipped" when I checked the status the next day. However, I'm not sure how quickly you can receive a game that has just been released that day. Would I have received Sekiro four days after its release date?

Looking through the list of GameFly games, I was impressed that they not only have the triple A titles, but also some niche ones including the Atelier series, that appear to come out yearly. I enjoyed Atelier Sophie, but not to the point where I want to buy future Atelier series at the $60 price point. 

You can keep the game for as long as you want, and once you finish the game, upon receipt, they mail you the next game.

Games in my queue are newly released Days Gone, Dragon Quest XI (as I was considering buying the game), soon to be released A Plague Tale: Innocence, and Red Dead Redemption 2. I'm curious to see for myself if I'd enjoy RDR2, and GameFly gives me the opportunity to do so free, as opposed to having buy the game and not enjoying it. 

As difficult as Sekiro is, even if it takes me 2 months to complete, the rental is nevertheless cheaper than buying the game full price. However, it does appear to be a game I'd like to buy on sale, once the Bundled edition comes out (From software always releases DLCs), so I can return Sekiro and hopefully get Days Gone (also "low availability").

Indeed, a strat that you can use, is to write down a list of all the game titles you're considering purchasing, sample these games, spending a few hours to see if this game is up your alley, and then return quickly to receive the next game. If a game appears to be a must own, then you can buy it without buyer's remorse. 

If you're a slow gamer like me and you like to take months on a game, then GameFly may not be a good option, since it costs $15.95/month for one game out at a time, or $22.95/month for two games out at a time.

So far, I've had positive experience with GameFly, albeit it's only been 1 week's experience. If you have a GameFly membership, please feel free to describe your experiences with them.

The How Of Happiness Review

Test Match: South Africa Vs Namibia - Event URL - Https://Www.Seisport.Tv/Events/C/0/I/45306445/Event-94

Event URL - https://www.seisport.tv/events/c/0/i/45306445/event-94
Mind Sports South Africa (MSSA) once again sees its official Protea Esports Team for DotA 2 take on the might of neighbouring Namibia in an action-packed test match.

Namibia beat the Protea Team at IESF's 11th World Championships (Seoul) in 2019, and South Africa has every intention to even the score.

Event URL - https://www.seisport.tv/events/c/0/i/45306445/event-94

Also read: