Batchography – Programming the “Hangman game” using the Batch scripting language!

hangman-1In this blog post, I am going to share with you the high level steps needed to build the Hangman game using the Batch scripting language.

To learn more about how the Hangman is programmed using the Batch scripting language, please refer to Chapter 5 in the Batchography book.

flower separator
batchography-good-res
Get the book from Amazon:

  • the print editionbtn-buy-on-amazon
  • or the e-book editionbtn-buy-on-amazon

flower separator

Continue reading “Batchography – Programming the “Hangman game” using the Batch scripting language!”

3 easy steps to setting up a zero configuration multi-platform web server with NodeJS and local-web-server

In this technical post I am going to illustrate how you can use the simple local-web-server package for NodeJS to start your web server in a few commands.

Let’s get started!

Step 1 – Installation

First, install NodeJS from http://nodejs.org/download/

If you are using Windows, then make sure you download the MSI package because it is so easy to install.

Keep the default options as you’re installing:

image

After installing NodeJS, open an elevated command prompt (i.e: run cmd.exe as Administrator) and type the following command in order to install the local-web-server package:

npm install -g local-web-server

You should see something like this:

image

No errors imply that the package has been successfully installed! Continue reading “3 easy steps to setting up a zero configuration multi-platform web server with NodeJS and local-web-server”

How to turn your bookshelf into an e-book library: Digitizing all of your books

digitizing-books-scannedSince I moved to the US, I collected around 350 books. I love books and the thought of giving them up is not a pleasant thought.

Each time I used to move from an apartment to another, the majority of boxes would be packed with books. Each time I travel somewhere for a long period, I miss being able to grab a book from my bookshelf and start reading (most of my books are old and they do no exist in digital format anyway). It is clear that I have attachment to those books.

To break this attachment, I had to make a couple of decisions. The first was whether to just forget about the books, leave them on the shelves and get myself busy with another chore. The other decision was whether to scan and /or give away the books. With that came other questions like how to scan books and convert them to eBooks, what methods to use, how much efforts would it take to convert the books, etc.

I decided to get rid of the books and the trim down on the space they occupy. For the reasons outlined later in this blog post, I chose to destructively scan my books. By scanning the books, I get a digital and searchable copy of my books (in PDF format).

In this blog post, I will share with you different ways you can use to digitize books and then the remainder of this blog post will illustrate how I destructively digitized all of my books and what tools I used. Continue reading “How to turn your bookshelf into an e-book library: Digitizing all of your books”

Technical cheat sheets

This article is compilation of the various blog posts that contain a set of steps, table of hotkeys and shortcuts and/or other quick information for reference purposes.
cheat sheet
The list below will be updated when new relevant articles are posted in this blog:

Stay tuned!

flower separatorYou might also like:

Batchography: Changing the MAC address on Windows – A free Batch script

batchography-good-resIn a previous post entitled “How to get unlimited free Internet at Airports“, I showed you how to circumvent the time limit imposed by the “free” Wi-Fi connections in certain airports.

For that trick to work, you were required to update the MAC address of your computer each time the free time is over.

In this blog post, I am going to share with you the ChangeMACAddressBatch script that I wrote with the help and instructions from the excellent Batchography book.

The script makes use of various recipes illustrated in the Batchography book (in Chapter 4) and uses the various Batch scripting language syntax (Chapters 1 and 2) and methodologies (Chapter 3). Therefore, I will not be explaining the script’s contents or how it works because it will become evident if you read the Batchography book.

flower separator

Get the book from Amazon:

  • Paperback editionbtn-buy-on-amazon
  • E-book editionbtn-buy-on-amazon

flower separator

How to use the script interactively

To begin with, you need to run the script with administrative privileges.

Running the script as an administrator


On Windows 8 and above, just press Win+X and choose “Command Prompt (Admin)” like this:

chg-mac-run-elevated-command-prompt

Otherwise, if you are using the Windows Explorer window, then right-click on your script and choose “Run as Administrator”:

chg-mac-run-as-admin

Starting the script

When you first run the script, you will be presented with the main menu that will show you a list of all the adapters you have on your system.

On my laptop for instance, I have 4 adapters:

  • An Ethernet adapter
  • 2 x VMWare virtual adapters
  • A Wi-Fi adapter

Using the keyboard, type the adapter number that you want to inspect and/or change its MAC address:

chg-mac-main-menu

Let’s press “4” in this case and go inside that adapter’s information screen. Continue reading “Batchography: Changing the MAC address on Windows – A free Batch script”

Keyboard shortcuts for working in a remote desktop Windows Machine from your MacBook

macos-rdp-1In this blog post, I am going to share with you how to get the missing keyboard keys that let you work in MS Windows via the remote desktop client under Mac OS X with the MacBook’s keyboard.

What is important to know is that when using a MacBook’s keyboard, you don’t have all the keys that you usually have on a PC keyboard.

Essentially, you are missing the following keys:

  • HOME / END.
  • DEL key. This is different from the MacBook’s “Delete” key (which is equivalent to the “Backspace” key).
  • INS Key.
  • Page Up / Page Down.
  • The “Windows” key.

Continue reading “Keyboard shortcuts for working in a remote desktop Windows Machine from your MacBook”

WifiPasswordReveal: A script to reveal all the saved WiFi passwords in Windows 7 and above

Hello,

The “How to show saved Windows 7 Wifi passwords” turned out to be a popular article and to make the life of my readers easier, I decided to apply a newly acquired knowledge and write a tool to make it SUPER EASY to get all the saved WiFi passwords without needing administrative privileges and without having to click through various settings dialogs.

Note: In some cases, if the script fails to run, then you may want to run the script as administrator.

Read on! or download the script. Continue reading “WifiPasswordReveal: A script to reveal all the saved WiFi passwords in Windows 7 and above”

Enable and use Bash under Windows 10

linux-subsystem-bash-coming-to-windows

Starting from Windows 10 build 14316 you will be able to use Bash from Windows, with the Ubuntu flavor without running a VM.

Bash will run natively on the OS without virtualization. It is implemented as new Windows subsystem.

In this article I will show you all the required steps to get Bash up and running in Windows 10! Continue reading “Enable and use Bash under Windows 10”

Backup and restore NTFS files permission with the ResetPermission utility

This is a follow up article to the popular article Resetting NTFS files permission in Windows – Graphical Utility.

In this article, I document the new feature in the ResetPermissions utility v1.1.5, where you can now backup and restore the NTFS files permissions. Continue reading “Backup and restore NTFS files permission with the ResetPermission utility”

How to remove the Windows 10 upgrade button from the tray icon

In a previous post, I spoke about the new Windows 10 update coming to Windows 7, Windows 8 or Windows 8.1.

With operating systems prior to Windows 10, you may noticed a new tray icon showing up like this:

windows10_trayicon

This icon is used to update to Windows 10:

get_windows10_trayicon

If you don’t want to update just yet, then just follow the steps below to remove the tray icon.

Method 1 – Removing the tray icon

The tray icon will remain and it can be annoying for some people, therefore to remove it, you can use various methods as described in these articles #1 and #2.

To make things simple, you may use the “Task Scheduler” and navigate to “Task Scheduler Library\Microsoft\Windows\Setup\gwx” as shown in the screenshot below and then delete the two entries there:

windows10-update-trayicon-tasksched

Method 2 – Uninstalling KB3035583

As indicated in this article, you can also remove the KB3035583 from the installed updates lists.

You may also like:

More about Yahoo Mail phishing

In a previous post, I explained about how Yahoo Mail accounts can be compromised by phishing.

In this blog post, I am going to be brief and just expose the phishing information and hosts used.

Step 1 – Looking at the email

mail-body

 

 

Lots of red flags here, just by looking at the email:

  1. The email sender’s apparent address is weird
  2. The email’s subject is also unusual
  3. The email’s body is also fishy and not true

Step 2 – Revealing the real sender

Click on the sender to reveal the actual email address:

real-sender

 

 

 

 

 

 

 

Now we can see that the real sender is “jcwod@aol.com”. It could be this is the real malicious user or not, but anyway.

When I search for this email on Facebook, I found this profile:

profile

Which in reality could be nothing.

Step 3 – Investigating the link in the email

In step one, the malicious email sender invited you to click on an address to fix the aforementioned “problem”.

Do not click, instead, hover the mouse over the link and look at your status bar. You will see something like this:

phishing-url-hidden

This is a shortened address. In this case, it is used to hide the malicious web address. Let us use the GetLinkInfo.com to reveal the real address:

link-resolved

The address is, obviously, not related to Yahoo! It is: “http://tuckertownforge.com/perfected01/index.html”.

I don’t advise you to go to that address, there could be a browser exploit or equally the phishing site.

The phishing site is supposed to look like Yahoo mail:
yahoo-phishing

DO NOT enter your user name and password on that FAKE SITE!


You may also like:

How to remote control your Android phone or tablet

android remote controlI have the Nexus 7 (2013) that is sitting around and not being used too much since I got an iPad Air 2 a few month ago. I figured why not use the Android tablet for security related work such as application protocol auditing and debugging android apps.

After researching, I discovered the Mobizen software. I tried it on my rooted Nexus 7 and it worked nicely for what I needed. In this blog post I am going to review this software and demonstrate some of its capabilities!

Let’s get started! Continue reading “How to remote control your Android phone or tablet”

How to reveal saved passwords in Internet Explorer, Outlook, Firefox, Thunderbird, and more…

This is a quick blog post to tell you about a bunch of nice password recovery utilities for Windows. They are free and very useful. Please check out the following password recovery tools:

 

Related posts: