Posts

[How To] Use Cryptopp in Kali Linux

Image
 Crypto++ is a popular C++ library for cryptography. Instruction in this article can be used to install Cryptopp for all operating systems similar to Kali Linux. Check out this article if you want to use it with Xcode in macOS. Step 1: Download Crypto++ using this link Step 2: Extract Crypto++ and switch to that directory from the terminal or shell. Step 3: $ make Step 4: $ make test Step 5: $ sudo make install Step 6: Compile your program using g++ -I/usr/local/include -L/usr/local/lib yourCode.cpp -lcryptopp

Automate onboarding in Google Workspace

Image
This tutorial demonstrates the use of Google Workspace apps to automate the onboarding experience for new users by adding them to a google group and sending automated welcome emails after they are added. Step 1: Log in to Google Drive using your Google Workspace account and create a new Google Sheet. Step 2: Go to Insert > Form and create a new Google Form. Step 3: Add the email address and google group fields. Step 4: Go to Tools > Script editor. Step 5: In Apps Script > Go to Project Settings > Check the box for "Show "appsscript.json" manifest file in editor" option. Step 6: Go to Editor > appsscript.json and change it to the following:

Automate User Creation in Google Workspace

Image
This tutorial demonstrates how to automate the user creation process in Google workspace using Admin SDK. Step 1: Log in to Google Drive using your Google Workspace account and create a new Google Sheet. Step 2: Go to Insert > Form and create a new Google Form. Step 3: Add the desired fields: First Name, Last Name, Recovery Email, Recovery Phone, Reporting Manager, Location, Title, Department, etc. Step 4: Go to Tools > Script editor. Step 5: In Apps Script > Go to Project Settings > Check the box for "Show "appsscript.json" manifest file in editor" option. Step 6: Go to Editor > appsscript.json and change it to the following:

[How to] Redirect URL in WordPress

Image
In this tutorial, I will walk you through redirecting a URL in WordPress without using any plugins. You can open a Terminal or Command Prompt window and do the following: $cd to /var/www/html $ls -loa $sudo nano .htaccess Append to the end of file “Redirect 301 old-URL new-URL” Save the file and exit $sudo service apache2 restart This tutorial redirects a URL in WordPress without a plugin by adding a Redirect 301 rule to the site's .htaccess file on an Apache server. A 301 tells browsers and search engines that the move is permanent. Editing .htaccess directly is lightweight and avoids extra plugins, but keep a backup, since a syntax mistake there can take the site down until it is corrected.

[How To] Generate KEY and IV for CryptoPP in C++

Image
In this tutorial, I will share strategies to generate random keys and initialization vector in C++ using CryptoPP library. Approach 1: SecByteBlock key(32), iv(24); AutoSeededRandomPool prng; prng.GenerateBlock(key, key.size()); prng.GenerateBlock(iv, iv.size()); Approach 2: SecByteBlock key(16), iv(16); std::string password = "Super secret password"; DeriveKeyAndIV(password, "encryption example", 100, key, key.size(), iv, iv.size());

Oracle Virtualbox crashing (aborting) on macOS [Solved]

Image
 I run into issues every time I update my VirtualBox version on my MacBook Pro. If you run into issues where you can't start a VM instance, try this fix. Open Virtualbox >> Go to your VM image >> Click on Settings >> Go to Audio >> Uncheck the "Enable Audio" box. This fixes VirtualBox VMs that crash or abort on macOS after an update, a recurring annoyance. The workaround is to disable audio for the affected VM in its settings. The audio backend is a common source of these crashes on macOS, so turning it off lets the VM start while leaving the rest of its configuration untouched.

Binary file (standard input) matches

Image
Error code: $ sudo cat /var/log/syslog | grep "tree" Binary file (standard input) matches Solution: $ sudo cat /var/log/syslog | grep "tree" --text Jul 14 17:43:00 osboxes kernel: [    3.042582] vboxguest: loading out-of-tree module taints kernel. Jul 15 13:24:47 osboxes kernel: [    3.420002] vboxguest: loading out-of-tree module taints kernel. Jul 15 13:54:22 osboxes kernel: [    3.027623] vboxguest: loading out-of-tree module taints kernel. Sep 28 12:59:21 osboxes kernel: [    3.165531] vboxguest: loading out-of-tree module taints kernel. Sep 28 13:46:04 osboxes kernel: [    2.755048] vboxguest: loading out-of-tree module taints kernel. Sep 28 13:51:08 osboxes kernel: [    3.508174] vboxguest: loading out-of-tree module taints kernel. Oct 19 21:04:41 osboxes kernel: [    2.762903] vboxguest: loading out-of-tree module taints kernel. Oct 19 21:11:51 osboxes kernel: [    2.566860] vboxguest: loading out-of-...