Monday 28 March 2016

Interfacing of 8251 with 8086 (with Detailed Comments)

Q: Write an ALP to interface 8251 with 8086. Transfer some data from 8086 memory at some location to another location in the memory through 8251.

OS: Fedora-64 bit(Linux)
Software: Minicom

 

Interfacing of 8253(Programmable Interrupt Timer) with 8086(Detailed Comments)

Q: Write an Alp to interface 8253 with 8086 in all the different modes

Os: Fedora-64 bit<Linux>
Software: Minicom

ADC : Interfacing with 8086 (with detailed comments)

Q: Write an Alp to interface ADC with 8086

Os: Fedora
Software: Minicom

Sunday 27 March 2016

Keyboard and display controller:Hardware Interfacing(Properly Commented)

Q: Write a ALP to display the word Hello using keyboard and display controller.


Operating System: Fedora -64 bit
Software Used : Minicom

Friday 25 March 2016

Cracking Open Naively Protected Binaries

One of the simplest way to protect an executable is password protecting it . In this method you use a simple if-then-else construct to check if the entered password matches a predefined value.

puts("enter password");
scanf("%d",&pass);
if(pass==4568)

Event though this way may seem secure, since after compilation this password will be converted to one's and zeros inside the binary file, this is not the case.
A simple disassembly will reveal the true password.

To prove my point I have designed a shell script which cracks passwords from such types of password verifying constructs. This shell file will not work on all naive password check but will deal with some of these types.
Anyone who understands a little bit of assembly along with a little bit a reverse engineering can easily crack variations of this type of password check, even if this script fails.

Tuesday 22 March 2016

B1: Conversion of If-else ladder to overloaded function

Q: You are required to write a C program involving a if-then-else construct and convert it into a C++ program eliminating the if-then-else ladder using overloaded functions.

Text Editor:-Gedit
Language:- C,C++
Framework:- QT(C++)
OS:- Linux-64bit (Fedora)


Friday 18 March 2016

MIL Lab Hack Exposed

 The Hack


Mil-Lab-Hack-ExposedThis hack mostly exploits the fact that assembly illiterates cannot actually differentiate the difference between a binary generated by C programing and assembly language.

The basic prerequisites for this hack are good knowledge of C language and good knowledge of Assembly language. When your assembly code doesn't work you recode the same thing in C language and then replace the assembly generated binary with the binary generated by C code. Once this process is completed , all traces of C programing are erased.

Below is the hack in action....


Thursday 17 March 2016

CPU Architecture Emulation & Sleep Function in QT

 Q:Writing a C/C++ Program to emulate CPU Architecture (Central Bus) Develop register, ALU level GUI to display results.


Language:- C++
Framework:-QT
OS:- Fedora (Linux -64 bit)

Tuesday 15 March 2016

Exception Handling in C++

Create a C++ class named Television that has data members to hold the model number and the screen size in inches, and the price. Member functions include overloaded insertion and extraction operators. If more than four digits are entered for the model, if the screen size is smaller than 12 or greater than 70 inches, or if the price is negative or over $5000 then throw an integer. Write a main() function that instantiates a television object, allows user to enter data and displays the data members .If an exception is caught, replace all the data member values with zero values.

Sunday 13 March 2016

Standard Template Library C++ Database Program

Q: Implement a database program in C++ using STL library. This is an extension of my earlier program.

Code:

Framework:- QT 5.5.1
OS : Linux 64 ( Ubuntu 14.04 LTS)

Linux Hacks 2: Turn Terminal Into a Chat Client

In case you don't wont to leave any history of your terminal chat. Read the previous article about leaving no history on the terminal.


For turning your terminal into a chat client. You need to two commands, the first one is executed on one pc and the other on the pc with which u wish to communicate.

Thursday 10 March 2016

Template Classes C++ & Matrix Operations

Q:- Write a program in C++ using function template to read two matrices of different data types such as integers and floating point values and perform simple arithmetic operations on these matrices separately and display it.

Sunday 6 March 2016

Linux Hacks 1.2 Leave no Trace on the Terminal

Linux-Terminal-Hacks
Linux Hacks
While the earlier article showed you some ways to accomplish this task. I've got a even better way. Do read the earlier article as this will help you in understanding about bash history under Linux.

For those in a hurry, here's ur way...


Saturday 5 March 2016

Perl Program for Counting Number of Lines, Characters and Occurances of a Word

Q: Write a Perl Program to find the number of occurrences for a given word in a text file. Also display the number of characters, words and lines in the file.