Saturday, August 29, 2020

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





More information
  1. Hacker Tools Mac
  2. Hacker Tools Windows
  3. Best Hacking Tools 2019
  4. Pentest Tools Android
  5. How To Install Pentest Tools In Ubuntu
  6. Pentest Tools Review
  7. Game Hacking
  8. Hack Tool Apk No Root
  9. Pentest Tools Free
  10. Beginner Hacker Tools
  11. Pentest Tools Github
  12. Hacking Tools Online
  13. Pentest Tools Windows
  14. Pentest Tools Online
  15. Hacking Tools
  16. Hacker Tools For Windows
  17. Hacking Tools 2019
  18. Hack Tools Github
  19. Hacker Security Tools
  20. Hacking Tools For Windows
  21. Pentest Tools Download
  22. Pentest Tools Nmap
  23. Pentest Tools Nmap
  24. Hacker Tools Github
  25. Github Hacking Tools
  26. Hack Tools For Windows
  27. Nsa Hack Tools
  28. New Hacker Tools
  29. Pentest Tools Bluekeep
  30. Hacker Tools Software
  31. Hacker Tools For Ios
  32. Hacker Tools Linux
  33. Hack App
  34. Hacker Tools Mac
  35. Nsa Hack Tools
  36. Hack Tools 2019
  37. Hacker Tools Apk
  38. Pentest Recon Tools
  39. Pentest Tools
  40. Hacker Security Tools
  41. Pentest Tools For Android
  42. Hack Tools For Ubuntu
  43. Pentest Tools Github
  44. Underground Hacker Sites
  45. Hack Tools
  46. What Are Hacking Tools
  47. Hacking Tools Kit
  48. Pentest Tools Android
  49. Hack Website Online Tool
  50. Tools For Hacker
  51. Hacking Tools For Pc
  52. Github Hacking Tools
  53. Pentest Tools Download
  54. Wifi Hacker Tools For Windows
  55. Hacker Tools Linux
  56. Install Pentest Tools Ubuntu
  57. Hack Website Online Tool
  58. Pentest Tools For Mac
  59. Hack Apps
  60. Hack Website Online Tool
  61. Hack Tool Apk
  62. Kik Hack Tools
  63. Hacking App
  64. Hacking Tools For Games
  65. Pentest Tools Find Subdomains
  66. Hacker Techniques Tools And Incident Handling
  67. Pentest Tools Framework
  68. Hacking Tools For Windows 7
  69. Hacking Tools Hardware
  70. Pentest Box Tools Download
  71. Termux Hacking Tools 2019
  72. Hacking Tools
  73. Hacker Tools 2019
  74. Pentest Tools Linux
  75. Hack App
  76. Hacking Tools Mac
  77. Hacker Tools List
  78. Hacking Tools For Windows 7
  79. Hack Tools For Games
  80. Hacker Tools Windows
  81. Best Hacking Tools 2020
  82. New Hacker Tools
  83. Kik Hack Tools
  84. Game Hacking
  85. Hacking Tools Name
  86. Hacking Tools Kit
  87. Hacking Tools Free Download
  88. Hacker Tools Mac
  89. Hacker Tools 2019
  90. Top Pentest Tools
  91. Hack Tools
  92. Hack Tools
  93. Hackers Toolbox
  94. Pentest Tools Alternative
  95. Hack Tool Apk
  96. Hacking Apps
  97. Pentest Tools Online
  98. Hacking App
  99. Game Hacking
  100. Hacker Tools Linux
  101. Pentest Tools Port Scanner
  102. Hacks And Tools
  103. Black Hat Hacker Tools
  104. Hacking Tools Online
  105. Pentest Tools Apk
  106. Hacking Tools Hardware
  107. Hacking Tools 2019
  108. Hacking Apps
  109. Pentest Tools Download
  110. Hackrf Tools
  111. Hacking Tools Name
  112. Pentest Tools Url Fuzzer
  113. Game Hacking
  114. Pentest Tools Port Scanner
  115. Hack Tool Apk No Root
  116. Hackrf Tools
  117. Hacking Tools Hardware
  118. Best Pentesting Tools 2018
  119. Pentest Tools Nmap
  120. Hack Tools Download
  121. Hacking Tools 2020
  122. Hacker Tools Software
  123. Pentest Reporting Tools
  124. Pentest Automation Tools
  125. Hack Tools 2019
  126. Hacking Tools For Windows
  127. Pentest Tools Find Subdomains
  128. Nsa Hack Tools
  129. Hacker Tools Windows
  130. Hack Tools Online
  131. Underground Hacker Sites
  132. Underground Hacker Sites
  133. Hack Apps
  134. Hacking Tools 2020
  135. Hack Website Online Tool
  136. Best Hacking Tools 2020
  137. Bluetooth Hacking Tools Kali
  138. Pentest Tools Github
  139. Install Pentest Tools Ubuntu
  140. Hacking Tools Github
  141. Pentest Tools Free
  142. Hacker Security Tools
  143. Hacking Tools For Windows
  144. Easy Hack Tools
  145. Tools Used For Hacking
  146. Hacker Tools
  147. Hacker Search Tools
  148. What Is Hacking Tools
  149. Hacker Tools Github
  150. Pentest Tools Nmap
  151. Hack Tools
  152. Hacker Techniques Tools And Incident Handling
  153. Hacker Tools Apk Download
  154. Hacking Tools

Theharvester: Email Harvesting Throughout Year




You might have harvested many things upto now but what we are going to harvest today is something bad :)



Requirements:

  1. A Linux box (I'm using Kali Linux)
  2. theharvester program (already available in Kali Linux)
So what does theharvester harvest? Well it harvests email addresses. theharvester is an Information gathering tool. If you want a list of emails to spam you can get that easily from theharvester tool and go on Spamming (I'm joking its illegal). It's a security tool that helps you in pentesting an organization (as always it can be used for evil as well). You can gather emails from an organization and look for potential victims to attack or use brute-force techniques to get their passwords or Social Engineer them into doing something that will let you compromise some or all systems in the organization. Uhh there are so many things that you can do when you have access to someone's email address.

OK stop talking and start doing.


Fire up a terminal in your kali box and type this command:


theharvester -d hotmail.com -l 50 -b google


In a small amount of time you'll see your terminal flooded with 200 hotmail.com email address. What does this command mean?


theharvester is the tool name that we are using

-d <domain_name> specifies the domain (or website) who's email addresses we're looking for, in our case it was hotmail.com
-l <number> specifies the number of results that we want in the output, I limited it to 50
-b <source> specifies the source on which to look for email addresses, I specified google as the source

Besides google we can specify any of the follow as source:

google, googleCSE, bing, bingapi, pgp, linkedin, google-profiles, people123, jigsaw, twitter, googleplus, all
Here the last entry all means look in every available source.

Let's say you wanted to look in every available source they you should specify the following command:


theharvester -d hotmail.com -b all




-f is another great flag which can be utilized to save the output in case we want to SPAM them later (just kidding) or for other reasons (I'm thinking positive). -f flag saves the result in html or xml format. Let's do just that:


theharvester -d gmail.com -l 50 -b google -f emailaddresses.html


here -f flag is followed by the location where we want to store the file and the name of file, in our case we stored it in our pwd (present working directory) with the name emailaddresses.html.




Above picture shows an html output generated by harvester.


That's it for this tutorial hope to see you next time!

More information


Friday, August 28, 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()





More articles