Nothing fancy, just a personal log with a built in search function so I can recall what is easily forgotten.
Sunday, December 30, 2018
Kali Linux WiFite missing hcxpcaptool and hcxdumptool
Go to the hcxdumptool git hub site
Find the clone of download drop down button.
Right click on download zip and copy the link address.
Open and Kali Linux terminal and type: wget [the link address], e.g. wget https://github.com/ZerBea/hcxdumptool/archive/master.zip
Wait for download then type unzip master.zip
CD (change directory) to hcxdumptool-master
Type make
Type sudo make install
Follow these same steps for the hcxpcaptool.
For example: wget https://github.com/ZerBea/hcxtools/archive/master.zip
You may find it first necessary to run the following:
sudo apt-get update
sudo apt-get install libssl-dev
sudo apt-get install openssl
sudo apt-get install zlib1g-dev
sudo apt-get install libpcap-dev
sudo apt-get install curl
sudo apt-get install libcurl4 ( or greater )
wget https://curl.haxx.se/download/curl-7.63.0.tar.gz
:~/tar -xvzf curl-7.48.0.tar.gz
:~/rm *.gz
:~/cd curl-7.48.0
:~/./configure
:~/sudo make
:~/sudo make install
Monday, December 10, 2018
Visual Studio C# Run Error
I am attempting to launch a project that I copied from another machine.
Unable to launch the IIS Express Web server.The start URL specified is not valid. https://localhost/.....
Need to dropdown [Project] -> [Web Properties] -> Un-check Override Application Root.
Then get on your motorcycle and reward yourself for a job well done.
Thursday, November 29, 2018
Root Asus Zenfone Laser ASUS_Z01BDC
This is more for my future reference than anything else
1. First of all, this model is actually a ZC551KL for which there is an unlock tool at Asus. After enabling Developer Mode and USB debugging, plug the Z01BDC aka ZC551KL to your PC. and follow these steps.1. Verify that the device is connected to your PC. Typically you'll see it as another drive.
2. Move the downloaded unlock tool from your PC to the Download folder on your device using Windows File Explorer.
3. Tap the APK file to install and run. You will see the device factory reset.
4. Wait for the device to display on-screen set up steps and follow them.
5. Get developer mode and enable USB debugging. Download USB driver if necessary from Phone USB Drivers.
6. Under Settings make a note of the Software information, e.g. WW-31.40.13.50-20170807. The model may still show ASUS_Z01BDC, but don't believe the hype. Ignore and continue.
7. Go to Asus support and download the firmware image that matches step 6. This is precautionary. Hopefully we will not need this download.
9. Download TWRP image to the ADB/Fastboot directory on your PC.
10. Download SuperUser to the ADB and Fastboot directory on your PC. 11. Rename the files recovery.img and su.zip to make the next command line instructions easier to type.
12. Assuming you have ADB and Fastboot installed on your PC, navigate to where you installed Android, ADB and Fastboot for example: C:\Users\SpiFi\AppData\Local\Android\sdk\platform-tools
13. Move the recovery and su files to the ADB and Fastboot directory.
14. Open a command line at that directory and type: "adb reboot bootloader". You should see that the device is unlocked.
15. In same command line window type: fastboot flash recovery recovery.img
16. Open command line window and navigate to the Fastboot and ADB directory, e.g.,
Victory Cross Country Motorcycle Not Shifting Gears
After checking that all battery connections and ground connections to the chassis were sound, I drove it to Desert Cycle Works in Twentynine Palms.
The guys there were great and did not just dismiss it as an internal engine problem. After listening to me describe the riding conditions just prior to experiences shiftlessness, they loosened the clutch cable...free of charge. My passenger and I made it back to Los Angeles.
Saturday, October 13, 2018
Linux Deploy Settings
Here is a link to Kali Linux Android images.
Thursday, October 11, 2018
Lenovo Yoga Book Android - Breaking Super User
After booting into TWRP and flashing the Super User Update file from ChainFire, I soft bricked the elegantly designed Lenovo Yoga Book. Yay! Now I need to go back and revisit my earlier post on how to Root the Yoga Book.
New approach to rooting after enabling developer options and yada yada yada...
Thursday, October 4, 2018
Lenovo Yoga Book - Installing Debian Linux on Android - Then Aircrack
First install Debian from Google Play Store - > here.
Open up terminal and run the following command to set up the environment for AirCrack:
sudo apt-get install build-essential autoconf automake libtool pkg-config libnl-3-dev libnl-genl-3-dev libssl-dev ethtool shtool rfkill zlib1g-dev libpcap-dev libsqlite3-dev libpcre3-dev libhwloc-dev libcmocka-dev
Install Aircrack:
wget https://download.aircrack-ng.org/aircrack-ng-1.4.tar.gz
tar -zxvf aircrack-ng-1.4.tar.gz
cd aircrack-ng-1.4
autoreconf -i
./configure --with-experimental
make
make install
Nexus 7 2013 WiFi not Recognizing USB WiFi Adapter
Decided to start over by flashing the CM mod downloaded from here. GAAPS zip file from here. Following this instructional video at YouTube.
Trying to get Android / Kali Net Hunter to Recognize a USB Wifi Adapter
First of all, apt-get update is not working against what is in the /data/local/nhsystem/kali-armhf/etc/apt/sources.list. I got rid of everything in there and added
deb http://http.kali.org/kali kali-rolling main non-free contrib
The apt-get update now returns an error on expired keys. To resolve this, I opened a command line in Kali and typed:
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
After editing sources.list, I ran the following one at a time and in this order: apt-get update, apt-get upgrade, apt-get dist-upgrade, apt-get install kali-linux-nethunter
Here is the source of this nugget: Kali forums.
I picked up a $10.00 TL-WN725N USB WiFi adapter from Office Depot. Through Google, I discovered that the chipset is rtl8192cu.
Now I will follow askUbuntu on how to install the driver. Also following pvaret on GitHub
Tuesday, September 11, 2018
Saturday, September 1, 2018
Bricking the Nexus 7 2013 with Kali Net Hunter
I plugged in the TP-Link TL-WN722N wifi adapter and got no blinking light on the adapter. Figuring it was a problem with my Android build, I started playing around with flashing different images in different ways, which eventually resulted in an unresponsive tablet, both on the touch screen and eventually not moving past the Google Logo after power on.
After several times incorrectly trying to flash a stock image, I eventually erased the entire system partition with the Nexus Root Toolkit (NRT). See the following screenshots.
Voila, the tablet booted into the familiar interface; however, since things never go smoothly, the auto rotate no longer worked. Therefore I uninstalled all unnecessary apps, pressed gently on the N and S letters on the backside logo, turned auto rotate on and off several times, powered down the device several times, and twirled around in a counter clockwise circle while chanting the F word. Eventually auto rotate mysteriously started working.
The next issue was all the space taken up by the sdCard/!ReadytoFlash folder created by NRT. In order to delete the unnecessary zip files, I rebooted into the TWRP recovery and used its file manager to delete.
After all this, the USB adapter with a TP-Link TL-WN722N antenna is still not recognized by the Marshmallow tablet.
Stay tuned, I will be back to report what magical sequence of spells are required to make it work.
Wednesday, August 8, 2018
Installing Kali Net Hunter on Nexus 7
Then you'll need this
I found that the most important part was installing the ADB drivers for the device.
Follow the Nexus Root Toolkit instructions on how to delete existing USB drivers, because you may find that Windows likes to install the USB connected device under MTP. It needs to be in the Device Manager under Android | Android ADB.
I also found that disconnecting the Internet / WiFi on the host PC helps prevent Windows from going out to the internet to search for drivers that will overwrite the USB interface to the Nexus 7.
You will need TWRP from here OR here.
After Unlock and Root with TWRP recovery, then use NRT to install the Net Hunter image. Go here.
For no good reason other than there was an option to do so, I copied the NRT Window Log below:
Nexus Root Toolkit v2.1.9 Masterlists: - LatestToolkitFiles.ini 3135 - AndroidDeviceListFull.ini 3135 - AndroidDeviceListFlash.ini 3135 RAZOR-FLO: Android 6.0.1 - Build: MOB30X Live log initiated [2018-08-08]: Checking ADB/FASTBOOT Connectivity adb devices 09e791fb device fastboot devices + ADB Device Connected Rebooting your device into bootloader mode... adb reboot bootloader Checking Fastboot Connectivity fastboot devices 09e791fb fastboot + Fastboot Device Connected + Confirmed: Bootloader Unlocked. Flashing Custom Recovery to RECOVERY partition... fastboot flash recovery "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img" Temporarily Booting TWRP... fastboot boot "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img" Checking ADB Recovery Connectivity adb devices 09e791fb recovery + ADB Recovery Device Connected Pushing root files to your device: Pushing "SR1-SuperSU-v2.78-SR1-20160915123031.zip" to your device: adb push "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Root_Files\ SR1-SuperSU-v2.78-SR1-20160915123031.zip" "/sdcard/!ReadyToFlash/ Root_Files/SR1-SuperSU-v2.78-SR1-20160915123031.zip" 100% /sdcard/!ReadyToFlash/Root_Files/SR1-SuperSU-v2.78-SR1-20160915123031.zip Hash verifying file transfer: 627c4b98e7bf83293e81d3758accf753 = Local Hash 627c4b98e7bf83293e81d3758accf753 = Device hash + Verified! Pushing "busybox-signed.zip" to your device: adb push "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Root_Files\busybox-signed.zip" "/sdcard/ !ReadyToFlash/Root_Files/busybox-signed.zip" 100% /sdcard/!ReadyToFlash/Root_Files/busybox-signed.zip Hash verifying file transfer: 0ece645c3ca95a10f9a4344300ce0f8f = Local Hash 0ece645c3ca95a10f9a4344300ce0f8f = Device hash + Verified! Pushing "quick-reboot-signed.zip" to your device: adb push "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Root_Files\quick-reboot-signed.zip" "/sdcard/ !ReadyToFlash/Root_Files/quick-reboot-signed.zip" 100% /sdcard/!ReadyToFlash/Root_Files/quick-reboot-signed.zip Hash verifying file transfer: 64384a4285d14f0727ea989c17c8909b = Local Hash 64384a4285d14f0727ea989c17c8909b = Device hash + Verified! Pushing "openrecoveryscript" to your device: adb push "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Root_Files\ openrecoveryscript" "/cache/recovery/openrecoveryscript" 100% /cache/recovery/openrecoveryscript Hash verifying file transfer: b42ecaae4b4c4d37d3200b874e29366b = Local Hash b42ecaae4b4c4d37d3200b874e29366b = Device hash + Verified! Rebooting your device into bootloader mode... adb reboot bootloader Checking Fastboot Connectivity fastboot devices 09e791fb fastboot + Fastboot Device Connected Temporarily Booting TWRP... fastboot boot "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img" Rooting... Waiting for your device... Device Detected Automated Rooting Procedure Complete!
You should see something like this in the NRT Log Window:
Nexus Root Toolkit v2.1.9 Masterlists: - LatestToolkitFiles.ini 3135 - AndroidDeviceListFull.ini 3135 - AndroidDeviceListFlash.ini 3135 RAZOR-FLO: Android 6.0.1 - Build: MOB30X Live log initiated [2018-08-08]: Checking ADB/FASTBOOT Connectivity adb devices 09e791fb device fastboot devices + ADB Device Connected Rebooting your device into bootloader mode... adb reboot bootloader Checking Fastboot Connectivity fastboot devices 09e791fb fastboot + Fastboot Device Connected Temporarily Booting TWRP... fastboot boot "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img" Checking ADB Recovery Connectivity adb devices 09e791fb recovery + ADB Recovery Device Connected Pushing "nethunter-flo-marshmallow-3.0.zip" to your device: adb push "C:\Users\SpiFi\Downloads\ nethunter-flo-marshmallow-3.0.zip" "/sdcard/ !ReadyToFlash/nethunter-flo-marshmallow-3.0.zip" 100% /sdcard/!ReadyToFlash/nethunter-flo-marshmallow-3.0.zip Hash verifying file transfer: aede8c474cb73c43205c6426ec23ad5a = Local Hash aede8c474cb73c43205c6426ec23ad5a = Device hash + Verified! Pushing "openrecoveryscript" to your device: adb push "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\stored\openrecoveryscript" "/cache/recovery/openrecoveryscript" 100% /cache/recovery/openrecoveryscript Hash verifying file transfer: 34b17570a68297721a19be80821452cc = Local Hash 34b17570a68297721a19be80821452cc = Device hash + Verified! Rebooting your device into bootloader mode... adb reboot bootloader Checking Fastboot Connectivity fastboot devices 09e791fb fastboot + Fastboot Device Connected Temporarily Booting TWRP... fastboot boot "C:\Program Files (x86)\WugFresh Development\ Nexus Root Toolkit\data\Recovery_Custom\TWRP\twrp-3.0.2-0-flo.img"Friday, July 27, 2018
Lowering the 2011 Victory Cross Country Motorcycle
2. Buy a lowered kick stand.
3. Watch You Tube Video
4. Get your self a proper jack. Here is what I got from Harbor Freight.
5. Remember that once the suspension is lowered, you may not be able to pull the jack out, so an extra car tire jack might help create the necessary gap.
6. Probably a good idea to secure the front wheel by keeping the handle bar break lever closed, so the bike does not roll. See image below.
7. Also remember steel toed boots just in case, because you are messing with a 900 pound vehicle.
8. By myself, this took 6+ hours, much of it spent slowly struggling and pounding coffee.
Sunday, July 22, 2018
Update to Root Lenovo Yoga Book
I found it necessary to install a previous version of Linux Deploy. linuxdeploy-2.0.0-216.apk
Then I needed to visit Google Play and turn off automatic updates.
Go to Settings | Apps | Linux Deploy on the Yoga Book and grant permissions manually.
Use a Root Browser to copy the SU file from /magisk/.core/bin/su to /system/bin/su and /system/xbin/su.
Lastly, in order to have VNC connect, I needed the password from Linux Deploy under properties, which is under the arrow down button in the upper right. See image below.
Best of Luck.
Tuesday, July 17, 2018
Root Lenovo Yoga Book YB1-X90F
Be patient between steps as there is a slight lag between screen prompts.
XDA root Yoga Book
XDA root Yoga Book revised
Monday, April 30, 2018
Resurrect Galaxy Tab 2 7.0 P3113
I discovered that a part time gal at work had no phone and no computer due to repairs. Since she is also a student at a local community college, I volunteered to give her my spare Android tablet. However, when I factory reset the Cyanogenmod build the tablet became stuck in the logo loop. Therefore, I needed to copy the following files to the tablet after connecting it to my Hewlet Packard laptop.
First install Odin on the PC. Second connect tablet to the PC and use ODIN to flash the TWRP image. Third, boot tablet into TWRP and copy the ROM and Gapps to the tablet. Fourth, use TWRP to install both files. Lastly Wipe/Dalvik and reboot.
Sunday, April 1, 2018
Using CSS to Fit Images into an HTML Div
Below are two Div classes meant to display content side by side across a page
.left { width: 50%; float: left; color: black; display:block; margin: 0 auto; height: 300px; border-radius: 10px; box-shadow: 5px 5px 5px #000000; } .right{ float: left; color: black; display:block; margin: 0 auto; width: 50%; height: 300px; border-radius: 10px; box-shadow: 5px 5px 5px #000000; }
Here is the image class definition
img { object-fit: contain; display: inline-block; }Here is the image that will appear in the left div.
<div class="left" title="Managing Shedule"> <img width="350px" src="slides/web1.png"/> </div>
Tuesday, February 20, 2018
Android: HttpURLConnection java.io.FileNotFoundException
I was using
//letterStrings is an ArrayList
JSONArray jsonArray = new JSONArray(letterStrings);
//jsonArray looks like this: ['aaa','bbb','ccc','ddd'];
sNotes = 'These are my notes';
URL url = null;
HttpURLConnection urlConnection = null;
String link = "http://somewebsite.com?&userID=3&jsonArray="+jsonArray+"¬es="+sNotes;
// The above looks like this when resolved: "http://somewebsite.com?&userID=3&jsonArray=['aaa','bbb','ccc','ddd']¬es=These are my notes";
url = new URL(link);
urlConnection = (HttpURLConnection) url.openConnection();
Funny thing is that the resolved string link runs just fine from the browser address bar.
From within Android using HttpURLConnection, the link results in a FileNotFoundException.
Why? You ask.
Because I must make sure that the values for jsonArray and sNotes are properly formatted for the URLconnection.
Therefore, I must first do the following before I put together the string link.
String urlNotes = URLEncoder.encode(snotes, "UTF-8");
String urlJson = URLEncoder.encode(jsonArray.toString(), "UTF-8");
Now the String link = "http://somewebsite.com?&userID=3&jsonArray="+urlJson+"¬es="+urlNotes;
Android Overlay a First Run Tutorial screen over the Main Activity
Here is a great link on how to create the overlay. Christian Peters