Debian, Linux

Sublime editor on Debian

Installation https://www.sublimetext.com/3 sudo dpkg -i sublime-text_build-xxxx_amd64.debsudo dpkg -i sublime-text_build-xxxx_amd64.deb Dracula Theme https://draculatheme.com/sublime/ Preferences -> Color Scheme -> Dracula Color Scheme -> Dracula CamingoCode Font https://www.fontsquirrel.com/fonts/camingocode sudo cp -r /home/username/Downloads/camingocode /usr/local/share/ sudo fc-cache -fvsudo cp -r /home/username/Downloads/camingocode /usr/local/share/ sudo fc-cache -fv Restart sublime if it is already open. Preferences -> Settings -> { "color_scheme": "Packages/Dracula Color …

Exploitation, Training

Compile a simple vulnerability on modern Windows

Visual Studio 2015 Open Visual Studio. Project Properties -> General -> Platform Toolset: Visual Studio 2010 (v100) or Windows7.1SDK Project Properties -> C/C++ -> Optimization -> Optimization: Disabled (/Od) Project Properties -> C/C++ -> Code Generation -> Security Check: Disable Security Check (/GS-) Project Properties -> C/C++ -> Advanced -> Compile As: Compile as C …

Linux

Create CSR with SAN

Create a file named myconf.cnf countryName = Country Name (2 letter code) countryName_default = GR countryName_min = 2 countryName_max = 2 stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = MyProvinceName localityName = Locality Name (eg, city) localityName_default = MyCityName 0.organizationName = Organization Name (eg, company) 0.organizationName_default = MyCompany organizationalUnitName = Organizational Unit Name …

Burp, Penetration Testing

Stunnel and Burp Pro

Stunnel Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs’ code. Its architecture is optimized for security, portability, and scalability (including load-balancing), making it suitable for large deployments. Stunnel uses the OpenSSL library for cryptography, so it supports whatever cryptographic algorithms are compiled …

C/C++, Hacking, Post-Exploitation, RedTeaming

HTTP – Get the external IP address in C

The following code snippets is from Post-recon project. This project is a work in progress. Please visit GitHub for the full source code, in this post I will just point out the most interesting parts. Get Public IP address (HTTP)   {…}   #define PUBLIC_IP_URL "http://ipecho.net/plain"   {…}   int LibCurl::GetPublicIPv4Address(char **ip, const char *userAgent, …

C/C++, Hacking, Post-Exploitation, Programming

Generating a unique machine id

The following code snippets is from Post-recon project. This project is a work in progress. You can check Github for the full source code, here I will just point out the most interesting parts. Current source code Generate computer unique ID Architecture Windows OS version Cpu Gpu is admin? MotherBoard Chassis Type Username PC name …

Rootkits

Open source Windows kernel driver loader

Windows kernel driver loader If you write Windows kernel drivers, this GUI-based tool will allow you to register your kernel driver easily, by creating a new System service and makes it easy for you to start your driver without rebooting, during the development stage of your project. Tech stack C/C++ QT 5 (Visual Studio 2015 …

C/C++, Programming

Build Standalone Qt Application for Windows

Download Visit http://info.qt.io/download-qt-for-application-development Select “Get your open source package“ Click “View All Downloads“ Download source package for Windows users as a single zip file (565 MB) Build a static version of Qt using Microsoft Visual Studio Download and Install Perl (http://www.activestate.com/activeperl/downloads). Download and Install Python (https://www.python.org/downloads/). Make sure that Microsoft Visual Studio is installed. Create …

C/C++, IDE, Programming

Qt – Cross-platform software development

Download Visit http://info.qt.io/download-qt-for-application-development Select “Get your open source package“ Click “View All Downloads“ To build x86 binaries, download Qt 5.8.0 for Windows 32-bit (VS 2015, 1.0 GB) To build x64 binaries, download Qt 5.8.0 for Windows 64-bit (VS 2015, 1.0 GB) Beautifying Source Code Download Artistic Style Extract astyle to e.g. Documents Open qt creator …