Showing posts with label Security. Show all posts
Showing posts with label Security. Show all posts

Wednesday, February 17, 2016

Practice CTF List / Permanant CTF List

I'm on a mission to becoming a great penetration tester. This is a list of CTF's 
Note: some links might or might not work so just try them. 

Live Online Games

Recommended

Whether they're being updated, contain high quality challenges, or just have a lot of depth, these are probably where you want to spend the most time.

Others

Meta

Webapp Specific

Forensics Specific

Recruiting

Paid Training

Downloadable Offline Games

Virtual Machines

Inactive or Gone

Just around for historical sake, or on the off-chance they come back.

Sunday, February 14, 2016

Upgrading from Kali Linux 2.0(sana) to Kali Linux rolling edition

I've been putting a lot of things off as of late and upgrading my kali linux has been one of them, but no more :). The is a quick step by step guide on how to upgrading to Kali Linux rolling edition.


Step1. Before doing anything just do a quick apt-get update and apt-get upgrade to apply any outstanding updates to the kali linux 2.0 image.

Step2. Once the updates have been applied. The go ahead and open the /etc/apt/sources.list with your favorite editor (mine being vim) and add the following information to the file.

deb http://http.kali.org/kali kali-rolling main non-free contrib

Step3.  After adding the above source to the /etc/apt/sources.list file run the following commands and just walk a way and grab some coffee and a pop tart (yum).

apt-get update
apt-get dist-upgrade
reboot

Step4. After completing the upgrade and rebooting, when booting into the Kali linux rolling edition you may have to reinstall open-vm-tools-desktop in order to make sure your full screen option works properly with the rolling edition.

Note: After  the upgrade i've noticed a couple of changes

1. the network card changed from eth0 to eno16777736 this is kinda similar to the network card settings in an default centos 7 installation.

2. After upgrading to kali linux rolling my display in full screen mode was still not right. After hours of searching and testing i found the solution that worked for me by running the following commands:



# uninstall vmware tools  (note: I transitioned from Kali 2.0):
vmware-uninstall-tools.pl 

# uninstall open-vm-tools
apt-get remove open-vm-tools-desktop
apt-get autoremove
reboot

# install open-vm-tools
apt-get install  open-vm-tools-desktop
reboot



Monday, June 2, 2014

network sweeping with python

Well as of late i have decided to ditch bash and go directly with using python for all scripting tasks and so far so good :). I think python is such an awesome language and should be used instead of bash all together. I'm currently preparing for my OSCP certification exam os this is one of many tools that i will write and post for your enjoyment.  Well enough babbling from me  he goes. This tool that ive written in python is a network ping sweeper.


 #!/usr/bin/python

import subprocess
import os
with open(os.devnull, "wb") as limbo:
    for n in xrange(1, 10):
        ip="192.168.18.{0}".format(n)
        result=subprocess.Popen(["ping", "-c", "1", "-n", "-W", "2", ip],
            stdout=limbo, stderr=limbo).wait()
        if result:
            print ip, "inactive"

        else:

           log = open("active_hosts", "a")
                print >>log,  ip


When running my script you will receive  the following output 


root@kali:/home/cyclonis/scripts/python# ./laserbeak.py
192.168.18.1 active
192.168.18.2 inactive
192.168.18.3 inactive
192.168.18.4 inactive
192.168.18.5 inactive
192.168.18.6 inactive
192.168.18.7 inactive
192.168.18.8 inactive
192.168.18.9 active


Well i hope whoever reads this blog post gets something from it. I really enjoy sharing information with others so if you like it please feel free to use it. 




Thursday, April 3, 2014

OSWP Certified

Hello everyone, it has been a while since i've been blogging shame on me ive been working on becoming a penetration tester.  I started off with taking the OSWP certification from Offensive Security. This certification focuses on wireless penetration testing,  I had to hack into various wireless routers with different configurations and settings in a matter of 3 hours once the exam was over , I had to submit a Pentest report to the Offensive Security Staff to verify that i was able to penetrate and crack the wireless encryption keys. In order to prepare for this exam I would suggest purchasing some alfa and tp link wireless network cards from the internet along with some old wireless routers and start attacking wep wpa2 and other wireless encryption settings. I'm currently on a journey to keep learning all that i can and become the best hacker i can be i love hacking and coding and finding new exploits this is a wonderful feeling and going through this challenge was a wonderful experience and i would encourage anyone  that is looking  for a challenge in security/hacking to sign up for Offensive Security Certifications they are really worth it My next challenge will be OSCP certification im looking forward to getting into the labs. Well thats enough rambling from me time for bed sunrise will be here before i know it. 

Friday, January 3, 2014

Bluetooth Sniffing For Less

 Bluetooth Sniffing For Less

HBluetooth Security seems to be very good compared to 802.11 problems. But most of the Bluetooth Security is based the PIN you have to enter during pairing two devices or on the link key, which is a result of it. In addition Bluetooth uses much more channels and hops frequently within the spectrum, which makes Analyzing a real pain. Sniffing raw communication without being paired is until now only available to rich companies or individuals which could buy one of the over-priced Bluetooth Sniffers.
When i say High-Priced i talk about 10'000 US$. Frontline (http://www.fte.com) is one of the few Bluetooth Sniffer manufacturers and they sell their application together with a "special" Bluetooth sniffer ComProbe / dongle. Here are some marketing highlights from their FTS4BT product website:

Supports EDR (Enhanced Data Rate): FTS4BT is the only analyzer currently on the market to support Bluetooth v2.0 + EDR. - Finger-sized Bluetooth ComProbe: Air sniffing hardware is incredibly portable and requires no power. - Synchronized air and HCI sniffing: FTS4BT provides multiple points of observation, speeding up debug time. - Real-time debugging: FTS4BT captures, decodes, filters and displays data, and detects protocol errors simultaneously, all live and in real-time.

Decodes all Bluetooth protocols and most profiles. Quick release of new profiles to keep pace with changing Bluetooth specifications. - Extract Audio into WAV files for playback and analysis. - Includes Framedecoder for rapid development and seamless integration of HCI Vendor Extensions and other custom protocol implementations. - This Frontline technology is how we meet Bluetooth challenges.
 
Current:
--------
It is in fact very easy to modify a very cheap standard USB dongle to be usable
as comprobe and together with the nifty keygenerator, everyone can analyze
Bluetooth. Follow the instructions below to get your Bluetooth raw sniffer for
a few bugs. So for the marketing: This piece of reversing is how we meet the
Frontline challenges :-)

Warning:
--------
Using a keygenerator to run illegal software copies is prohibited in many
countries and you do it at your own risk. And we still think that you should buy
this expensive tools if you do business with it.

Prepare yourself:
-----------------
To conduct all the steps you need the following:
- Linux installation with Bluez and the important BCCMD, BDADDR and DFUTOOL
  from the CVS tree. Get it at http://www.bluez.org. A few security testing 
  focused Linux distributions have them already pre-installed.
- A supported CSR chip based Bluetooth dongle
- A copy of the FTS4BT software (Should be available in combination with this
  howto)
- A copy of the license and authentication code generator (Should be available
  in combination with this howto) 
 
Step 1 - Backup original firmware:
----------------------------------
First you want to backup your USB sticks current firmware and configuration for
later use. Follow the points below to do this:

- Insert your stick into your linux machine and do a hciconfig  up
  (Most often  is hci0). Check using hciconfig -a if the device is
  there and UP. Looks somewhat similar to that list below i suggest that you
  copy your information to a safe place, in case you want to switch back to it:

linux ~ # hciconfig -a
hci0:   Type: USB
        BD Address: 00:DE:EA:DB:EE:EF ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING
        RX bytes:85 acl:0 sco:0 events:9 errors:0
        TX bytes:30 acl:0 sco:0 commands:8 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy:
        Link mode: SLAVE ACCEPT
        Name: 'COMPUTER'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Ver: 1.1 (0x1) HCI Rev: 0x33c LMP Ver: 1.1 (0x1) LMP Subver: 0x33c
        Manufacturer: Cambridge Silicon Radio (10)
 
- Write down your btaddr (similar to mac addr),in our case its 00:DE:EA:DB:EE:EF
  You will need it later on, so write it down. Tip: You can also set a specific
  address using the tool btaddr which als also from bluez.
- Now just backup the current firmware using the dfutool. Please notice that
  ID 0a12:0001 thats the vendor and product id (You can also get it using lsub).
  We need the product to be 0002  but we do this a bit later. Now do your
  backup, it should look like the  example below. Please not that doing this in
  virtual machines may fail.In addition you need to use again hciconfig
   up after the dfutool because it resets the state of the device.:

linux ~ # dfutool -d hci0 archive my_bluetooth_dongle_firmware_backup.dfu
Available devices with DFU support: 
 
2) Bus 1 Device 2: ID 0a12:0001 Interface 2

Select device (abort with 0): 2

Firmware upload ... 358832 bytes

linux ~ # hciconfig hci0 up 
 
Step 1 - View original configuration:
-------------------------------------
Acording to the CSR specifications there are multiple places to read stuff on
the stick. Depending on your product these can be different. In generel these 
are "Default" (0x0000), "param" (0x0008), "psi" (0x0001), "psf" (0x0002) and 
"psrom" (0x0004). You can use those values usind bccmd pslist -s . Its 
even more easy if you like to get a complete list of parameters, just use:

linux ~ # bccmd -d hci0 pslist -s 0x000F >> backup-configuration 

look in there for the lines that contains something similar to these:
"0x02bf - USB product identifier (2 bytes)"  
"0x02be - USB vendor identifier  (2 bytes)"   

Now get the values of those two bytes:

Use the following command to get the location of the product id:
linux ~ # bccmd -d hci0 psget -s 0x000f 0x02bf 
USB product identifier: 0x0001 (1): 
This is what we want to change later

linux ~ # bccmd -d hci0 psget -s 0x000f 0x02be 
USB vendor identifier: 0x0a12 (2578): 
If you have something different we have to change it as well
 
Step 2 - Change product ID:
----------------------------------------
Acording to the CSR specifications there are multiple places to store stuff. On
most dongles we know about it the product id is stored in "psf" (0x0002). Never 
mind if its not there just check your configuration and search for it. If you 
the right location then use the following or similar line to modify the product
id from 0x0001 to 0x0002. Otherwise Frontline drivers wont install properly.

linux ~ # bccmd -d hci0 psset -s 0x0002 0x02bf 0x0002 new id

If you got no feedback then it was successful, check it by reading that value 
again using:

linux ~ # bccmd -d hci0 psget -s 0x000f 0x02bf 
USB product identifier: 0x0002 (2)
yeah data-blogger-escaped-baby="" data-blogger-escaped-pre="">
 
Step 2 1/2 - Change vendor ID:
----------------------------------------
Most dongles i did see where Cambridged Silicon Radio,so its likely that
you will get 0x0a12 as the usb vendor id. If you got that one, your finished 
with modifications on your dongle. Go to Step 3 of this guide. When you are 
using the Toshiba Version 2.0 + ERD dongle (which is amazing) you need to change
also the vendor id from 0x0903 to 0x0a12 uing psget/psset.

Step 3 - Install the sniffer software
-------------------------------------
I guess i dont have to explain that. Use your license or generate one if you 
got a keygen :-). Please note, its important on the keygen that you enter the
mac / btaddr of your dongle in lowercase and without any ":".

The keygen is available as a linux binary as well as windows .exe file

Use the serial number during installation. You will get a Desktop Folder with a
lot of links. Don't delete it you will need it. 

Step 4 - Install the USB stick driver from frontline
----------------------------------------------------
When you insert your stick, windows will try to install a driver. You will find
it in your Frontline installation dirctory, quite simple uh?

Step 6 - Install the firmware package from frontline
----------------------------------------------------
Pretty straigth forward, but you will need it.

Step 7 - Configure the sticks firmware etc.
------------------------------------------- 
Open the Bluetooth ComProbe Maintenance Utility. You find a shortcut on 
"Desktop\5.6.9.0 FTS4BT\Setup" or at similar places. Use the "Select Device" 
button and if you did previous steps correct, it will be detected. Yeah!
Now use "Update Firmware" to update your desired firmware version (You will 
find it in the subfolder "Bluetooth ComProbe Firmware" in the frontline 
installation directory. I normaly use the latest one. After that you should 
use "Check Configuration" to configure the stick with the serial and the 
authentication code. Finally i suggest to use "Calibrate" which takes time.

Step 8 - Use it
--------------- 
Thats it.

Future / Todo:
-------
We did the first step and show you how to do it for less, now its the
communities opurtunity to take that know-how and generate a custom, free
firmware and sniffer module to generate a real opensource sniffer.

 

Monday, January 14, 2013

Java 7 Release Update 11

Good Morning hope everyone is having a great day. Well the Java 7 Security Vulnerability issue has finally been resolved with the release of Java 7 update 11. Java update 10 and earlier has an big security hole that allows the attacker to remotely exploit a system without the need for a username and password. To be successfully exploited, an unsuspecting user running an affected release in a browser will need to visit a malicious web page that leverages these vulnerabilities. Successful exploits can impact the availability, integrity, and confidentiality of the user's system. With that being said please head over to http://www.java.com/en/download/manual.jsp to download the latest update.
Also Note: JDK and JRE 6, 5.0 and 1.4.2, and Java SE Embedded JRE releases are not affected. by this vulnerability.

Wednesday, January 6, 2010

becoming a hacker

Happy New years to all. I took a nice long break and now I'm back with tutorial on becoming a hacker.

Steps to becoming a Hacker

#####################
#Disclaimer :()
#####################

First before i get into anything let me say that i don't encourage illegal activity so don't blame me if you wind up in jail for your own stupidity :) OK now that i have that out the way lets begin.


This first section will talk about a few things that you must know in order to hack something, when i say something i mean computers, phones etc .... Reading a simple tutorial on the Internet is no where near enough. So i would suggest starting off with learning networking, you use google.com (the gateway to world of information), read a network + book , or a guide to networking don't just read the book strive to understand everything that you are reading because you will need it later on . After reading a general networking book, go for something more specific like TCP/IP. Reading a full book on TCP/IP will improve your knowledge greatly. TCP/IP is the fundamental protocol of the Internet, and not understanding it means that your hacking skills are worthless. Knowledge of networking and TCP/IP will help you understand how and why different kinds of attacks work.


After Learning about networking and tcp/ip move on to Unix/Linux. Now adays there are many computers(servers) running some type of Unix or Linux so knowledge in it is absolutely essential. The best way to learn UNIX or Linux for that matter is to just install it and run it. There is alot of trial and error when learning UNIX/Linux i would recommend reading Running Linux by orielly this is a great book for beginners. I would also suggest starting off without a Gui when learning Linux/UNIX. because hacking is all command line and programming no Gui's like they show in the movies lol :).



The next step which is the biggest one is programming. I would this step the time sink because you will spend alot of time when learning programming. The leap into programming is very hard and can be frustrating. Hackers have been using C and Perl as a language of choice. However python has become a hot language to learn as of late. I would suggest the following languages , python or Perl, C, php, java, and a shell language. most people use bash, but i have crush on ksh (korn shell) :) just having some fun. But all jokes aside do go weak on learning how to program, programmers make much better hackers, that's just how it goes. This all stems back to knowing how things work, if you understand how networks work, how the OS works and know how programs work then you can find way to manipulate these things to let you do whatever you want.


Many people reading this article are probably saying that's all you need to know this is easy. The above topics will take many months or years depending on your situation of reading programming and experimenting. The pieces of the puzzle come together slowly but they take alot of work to put together. but if you commit yourself and preserve you will be fine. Remember the above steps are not written in stone you can go in any order you like. Final note when you understand how networks work, Os's work and how to program, then will all of this comes the knowledge of how security works.



Well I'm off to bed :P i hope this document sheds some light on the subject, and if it doesn't then o well.

Cracking Kerberos Service Tickets (TGS) Using Kerberoasting

As of late I've been spending a lot of time researching and learning different techniques when it comes to attacking Active Directory En...