The 10 commandments in the 21st century

ten commandmentsSpiritual or religious teaching have roots in the human psyche and can not go out of date. I have been meaning to write about the ten commandments and how they apply in real life. In this blog post, I will list the commandments and then talk a bit, from my point of view, how I see they still apply in the 21st century.

The 10 Commandments list can be found here Exodus 20:2-17

Let’s get started!

Continue reading “The 10 commandments in the 21st century”

Introduction to writing x86 assembly code in Visual Studio

Hello,

In this technical blog post, I am going to give you a head start on how to write assembler code and compile it directly from the Visual Studio IDE.

If you are interested in x64, please check this article.

image

You are expected to be familiar with:

  • The Intel x86 assembly language and writing basic assembly code
  • Understanding of various calling conventions (stdcall, cdecl and fastcall)

Okay, let’s get started! Continue reading “Introduction to writing x86 assembly code in Visual Studio”

How to show saved Windows 8 and Windows 10 Wifi passwords

In this blog post, I am going to illustrate how to reveal the saved Wifi passwords under Windows 8, 8.1 and Windows 10 in three easy steps.

flower separator
batchography-good-resDo you want to master Batch Files programming? Look no further, the Batchography is the right book for you.

Available in print or e-book editions from Amazon.
flower separator

Alternative method

You can just use the WifiPasswordReveal script to automatically reveal the saved password with a click of a button!

WifiPasswordReveal article

You might also like the following posts:

Step 1 – Open the Network and Sharing Center

Right click on the wireless networks icon in the tray bar (just next the clock):

image

Then right click on select “Open network and sharing center”

Step 2 – List all network adapters

Select “Change adapter settings”

image

This will give you a list of all available network adapters:

image

Step 3 – Show the WiFi properties and reveal the password

Double click on the Wifi card adapter icon for which you want to retrieve the password. In my case, I double-clicked on the “Wi-Fi” card.

The “Wi-Fi Status” dialog will show up. Press the “Wireless Properties” button:

image

Then switch to the “Security” tab:

image

Press “Show characters” to reveal the password.

I hope this short and concise article was useful. Please leave your comments or start following this blog to get notified about new / other useful tips.

Fasting Prayer

Fasting has one thousand and one benefits ranging from physical to spiritual. I have created this small prayer in the hope of giving you willpower while you are in a fast:


Oh Lord,

Help me fast from this day until the end of my fast,
May my efforts be used by you,
May my body be detoxified,
May my soul be purified,
May the money and food that I save daily be used to feed the poor,
May your grace and love fill me every day,

Thy will be done.

You might also like:

Resetting NTFS files permission in Windows – Graphical Utility

Update 04/30/2017:

New version 1.2.0 released with Unicode support and lots of bug fixes!

Download the reset permission tool from the download section below. 

The post entitled “Resetting NTFS files security and permission in Windows” is very useful to show you how to reset the files permissions from the command line.

However, not all readers are savvy with following system commands and for that reason, I made a small graphical utility to automate NTFS resetting files permissions and taking their ownership:

Usage

This utility needs administrator privilege in order to run. To use it, first click on “Choose folder” to select the folder you want to reset permissions then press “GO” to proceed.

It is also possible to edit the commands, change or add new commands before you press the “GO” button.

Explanation of user interface:

The options:

  • Reset files permissions: This is the basic option. You may uncheck it if you want to carry other operations.
  • Take ownership: Sometimes it is necessary to take ownership of the files before resetting their permission. For that reason please check this option if needed.
  • Apply for all sub-directories: Use this option to apply the selected commands recursively.
  • Reset hidden and system files: This command will make invisible files visible.
  • Don’t follow links: this option applies to the “Reset files permission” and “Take files ownership” options only.
  • More options: see the section below.

The action buttons:

  • GO: executes the commands in the “Command that will be executed” text box.
  • HELP: takes you to this blog post
  • ABOUT: Shows the version and about text

Advanced

This is a new feature introduced in version 1.1.0.  When you press this button, you get two options:

  • Add to Explorer folder context menu
  • Remove from Explorer folder context menu
  • Backup / Restore permissions. Those two features are explained in details in this article here.

Note: always press “GO” after you select any of the advanced options.

When the ResetPermission utility is added to the Explorer folder context menu, you will be able to right-click on any folder and then choose a new option called “Reset Permission”.

Check this screenshot:

resetperm-ctxmenu

How it works

To keep the explanation short and less technical, this utility is just a shell that uses the following utilities from Microsoft:

All the commands that are going to be executed are showed to you beforehand.

You have a chance to tweak the commands before you press “GO” and execute them.

Checkout the free tools:
Pic2Pdf
WifiShare
Windows Error Reporting – Local crash dump collection graphical tool
MAC address changer on Windows

Backing up / Restoring the files permissions

Don’t you wish you could undo all the permission changes you did because your system became unstable due to misusing this utility?

Now you can, with the two new “Backup permissions” and “Restore permissions” functionalities. Please read more about that in this article.

Disclaimer

Please use this utility at your own risk. Backup the permissions beforehand if you have to.

I am not responsible for mishaps due to using this tool recklessly (for example trying to reset system or root folders permission), however, I display a warning when this tool is about to be used on a root folder:

ResetPermission-1.1.3-Root-Warning

Check the “How it works” section above then please refer to Microsoft TechNet site for information about the tools used.

Download

Download WifiPasswordReveal

Download the utility executable – use the password: lallouslab

Note: Windows Defender might block this attack. Add a folder exclusion to Windows Defender to solve the issue.

Download the source code
flower separator
batchography-good-resDo you want to master Batch Files programming? Look no further, the Batchography is the best book on the topic and the most up to date!

Available in print or e-book editions from Amazon.

 

12/19/2016 – Very important – ResetPermissions.exe is NOT a virus or trojan, read on:

ResetPermission tool continues to be plagued by Antivirus falsely reporting it as a Trojan or virus!

It is a shame that even in 2016, AntiVirus solutions are very poor at distinguishing malware from good ware.

If you follow this VirusTotal link here, you will see that as of 12/19/2016, only 2/41 falsely detect the ResetPermission.exe as a virus and the remaining AntiVirus solutions detect correctly.

What is more shameful is that “top” and “reputable” AntiVirus solutions like “Windows Defender” from Microsoft, “BitDefender”, “Kaspersky Antivirus” among many other AVs do a very poor job telling which is a malware and which is not!

In the AntiVirus hacker’s handbook book that I co-authored, I explain how Anti-Virus solutions are not optimal and just give you a false sense of security!

If you want to learn more about the Antivirus industry and how their technology is outdated, then read Part IV (Chapters 16 and 17) in the Antivirus Hacker’s handbook. Part IV is written in simple English and does not require you to be a computer geek to understand what the A/V industry is all about!

flower separator

Please support my efforts and time put into writing this utility by donating through PayPal:

Thank you.
flower separator

Interesting Batch programming articles:

You might also like:

Resetting NTFS files security and permission in Windows

UPDATE:

I have released a new graphical user interface utility to reset the files permissions.

Try it out!

I was running Vista with two NTFS partitions (C: and D:), then formatted C: partition and installed Windows 7. The second partition (D:) had some files security set on files and folders.

After Windows 7 was installed, some files on drive D: were not accessible anymore and I was getting “Access Denied”. I tried to right-click/properties on the folders that were not accessible and changed their owner and changed permissions but still some folders were still inaccessible not matter what I did.

After some research, it turned out the tool “cacls” that allows one to display or change ACLs (access control lists) can help to reset ACLs. In Windows 7 it is called “icalcs”.

To reset files permissions, follow these easy 3 steps:

Step 1: Run “cmd” as Administrator.

Note: In MS Windows 8 and above, press the Win+X keys, then choose “Command Prompt (Admin)”.

Step 2: Go to the drive or folder in question, for example:

CD /D D:

Step 3: To reset all the files permissions, type:

icacls * /T /Q /C /RESET

That’s it! After that, the files permissions were reset and I could access them back again.

Very Important note:

Step 3 is irreversible. Make sure you backup the permissions before you proceed!

It is possible that “icacls” might fail. For that try to take ownership of the files first. Just before Step (3), please type the following command:

takeown /R /F *

flower separator

Download the graphical utility instead!

flower separator
batchography-good-resDo you want to master Batch Files programming? Look no further, the Batchography is the right book for you.

Available in print or e-book editions from Amazon.
flower separator

You might also like:

Lassy and Big Joe

Here’s a small story / piece of reflection I share with you:

Lassy
As the sun rises and the stud officially declares the beginning of a new day, all the fellow chicken wake up to start all over, always grateful to their fellow cock who played a big role in their life.
Our fellow chicken, Lassy, is very religious and fears its God. For Lassy, being grateful to the farmer, big Joe, is something sacred. He feeds her very everyday, cleans the inn, hires a dog to watch over the nasty wolves.
Lassy never knew what hunger means, she always prayed for the farmer, who only wished her happiness and health.

Big Joe
Big Joe, owner of a chicken farm, is a very business oriented person.

He’s not religious at all, all he cares about is his big fat bank account, but on what account? (pun intended).
He hates to wake up early in the morning, but he has to, for he has good things to sacrifice for.
Everyday, Big Joe spends a generous amount of his time looking for the best food supplies that make his chicken fatter and grow faster. Big Joe knows that if he does not clean the inn, his dollars, err…his chicken, would die out of intoxication. And if he doesn’t enslave that stupid dog, he would loose his fortune to those greedy wolves. All what Big Joe wants is to see his chicken grow very quickly and have them slaughtered and transformed into money.

The Narrator:
My friends my friends, who’s Lassy and who’s big Joe among you?
Are you both?

Origin: Self

EEG analysis with altered states of consciousness

Hey,

Yesterday a friend of mine payed me a visit to experiment with EEG and how it reads brainwaves.
I wanted to do the experiment with my friend when he’s in an altered state of consciousness, so I proceeded and hypnotized him and put him into a relax and trance like state.
The next thing was to hook the device and start interpreting the readings.

  • Me: Close your eyes, then open them
  • NFB (NeuroFeedBack device): Direct rise of Alpha waves when eyes closed, Alpha disappears when eyes are open again
  • Me: I want you to remember what you used to play at age of 5
  • NFB: We can see rise in Theta and Alpha and some Delta. It is so clear how the subject requested a recall from his subconscious mind (this explains the Theta waves).
  • Me: Tell me what you did 3 hours ago
  • NFB: High level of beta, little alpha, and subject reports annoyance and inability to remember details. We can see the absence of Theta and alpha which explains why the subject cannot recall.
  • Me: Close and roll your eyes as if looking at your forehead
  • NFB: Alpha rising and going down, mostly trying to stay up.
  • Me: Lie down and sleep
  • NFB: After some time, the subject showed increase theta, moderate Alpha and low beta and delta

After some tests like that, I hooked the device to the PC and launched BioExplorer and loaded the FlashPacman design. This design takes one channel input and a bandpass filter to detect alpha activity. If the activity is present a YES will occur while a NO will occur in its absence.

Now the Pacman character will move and eat the dots as long as the desired brainwave is reached and maintained. It was very fun to control alpha waves while eyes open!

It was a nice experiment where I learned and saw how the brainwaves play a role in the functioning of the brain.

Pacman game