Labels
android
Assembly Language
bash
Beagle Bone Black
c
c++
CL1
competitive programming
compiler
computer vision
data structure
database
dsps
encryption
games
graphs
hacks
java
linux
lisp
MIL
monte carlo algo
MPAL
networking
OOMCPL
osa
perl
pl
PL -3
PL-1
PL-2
PL-4
python
qt
recursive algorithms
Scala
security
sorting
storage
terminal
ubuntu
utilities
Monday, 28 March 2016
Sunday, 27 March 2016
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.
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.
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)
Text Editor:-Gedit
Language:- C,C++
Framework:- QT(C++)
OS:- Linux-64bit (Fedora)
Friday, 18 March 2016
MIL Lab Hack Exposed
The Hack
This 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)
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)
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.
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 Hacks |
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.
Subscribe to:
Posts (Atom)