Profile cover photo
Profile photo
Mathew Gibney
About
Mathew's interests
View all
Mathew's posts

Post has attachment
Check root at start of script
Some scripts need to be run as root and you may want to check at the start of that script that it is running as root. This can be done by checking the environment variable $EUID. This variable will hold the value 0 if it's being run as root. #!/bin/bash if ...

Post has attachment
HID keyboard attacks on Windows with a Teensy 3.1
The Teensy 3.1 is a small USB development board similar to Arduino and can be programmed using the Arduino ide. The Teensy board has the ability to act as a USB HID device like a keyboard or mouse and this is what allows us to exploit most computers as most...

Post has attachment
Buffer Overflow Variable writing in C
Buffer overflows usually stem from code that has been badly written and not included the necessary checks to prevent them. Vulnerable code: #include int main(){
char buffer[5];
char a[2];
char b[2];
printf("Enter a string: ")...

Post has attachment
Shrink a PDF on linux
You can shrink a pdf using this command: ps2pdf -dPDFSETTINGS=/"OPTION" BiggerPdf.pdf SmallerPDF.pdf To change the amount of compression change "Option" to: screen - Low quality ebook - Med quality printer - High quality

Post has attachment

Post has attachment
5 commands you should NOT run.
*DISCLAIMER:MOST OF THESE COMMANDS WILL RENDER YOUR PC USELESS DO NOT RUN ON YOUR PERSONAL COMPUTER* If you do want to test them out you can check out this tutorial on installing vmware and run them inside a VM just for fun. A list from this reddit post f...

Post has attachment
10 commands you should NOT run.
*DISCLAIMER:MOST OF THESE COMMANDS WILL RENDER YOUR PC USELESS DO NOT RUN ON YOUR PERSONAL COMPUTER* If you do want to test them out you can check out this tutorial on installing vmware and run them inside a VM just for fun. A list from this reddit post f...

Post has attachment
Installing VMware Player on debian/ubuntu.
VMware is a free piece of software that allows Virtualization of a guest operating system inside of an operating system. This can be useful when developing or trying out new distros. To install VMware player we first need to download it. Lin k  You then nee...

Post has attachment
Simulating your mouse
Sometimes you just want to automate tasks but the program only has a GUI. Simulating mouse clicks can make this job a lot easier and this is were xdotool comes in. Installing xdotool: Debian systems: sudo apt-get install xdotool RedHat/Fedora: sudo yum inst...

Post has attachment
How to send email in Python
We are going to be using the yagmail library to send a email using python. To start of we will need to install the yagmail python library. pip install yagmail If you don't have pip installed you can install using the following commands depending on your OS....
Wait while more posts are being loaded