book and code

Category Archives

22 Articles

Setting Up Distributed Computing on BSD Systems in Order to Aid COVID-19 Research

by Jamey 7 Comments
Setting Up Distributed Computing on BSD Systems in Order to Aid COVID-19 Research

This will be a tutorial on setting up BOINC on FreeBSD (specifically, FreeNAS), in order to devote your extra computing power to aid The National Upcycled Computing Collective (NUCC, Inc.), a 501c non-profit organization, who is working on distributed computing projects with Rosetta@Home, which is focused solely on COVID-19 research at the time of this writing. Click here to read more about NUCC, and be sure to check out (and follow) @nucc_inc and @NUCC_STATS on Twitter. If you are fresh out of CPU cycles and would much rather prefer directly feeding cash to the cause, please feel free to do so here.

To get instructions for other operating systems that will have you processing workloads in less than 10 minutes, view the GitHub repo featuring quick super-quick setups scripts at https://github.com/phx/nucc.

812 views

How to Host a Hidden Service .onion Site on the Dark Web

by Jamey 5 Comments
How to Host a Hidden Service .onion Site on the Dark Web

Warning: the recommendations made here are in reference to hosting your own personal content, not to become a web hosting provider on the dark web. You are responsible for the content that you host (maybe depending on region — I’m not a lawyer), but you don’t want to find yourself anywhere in the distribution pipeline related to the nefarious goods and services of others.

This guide is tuned toward hosting on Amazon Web Services (AWS) on Ubuntu 18.04. The same things can be achieved using RPM-based distros by substituting the packaging commands and tweaking the instructions as necessary.

1,502 views

How to SSH to a Jailbroken iOS Device over USB

by Jamey 1 Comment
How to SSH to a Jailbroken iOS Device over USB

I recently had to set up testing against our Akamai Staging environment which uses a different IP address than production. This required me to get a new MacBookPro that would support the latest version of MacOS, as well as the latest version of Xcode, just so that I could have sudo access to change add an entry in /etc/hosts in order to build the application from source and run it in the iOS simulator (since the Simulator doesn’t come packaged with the iOS AppStore). Then I had to carry around another computer in my backpack simply because I refuse to separate from Arch Linux and i3-gaps (which can perfectly emulate the Android version without issues), but I digress…

2,030 views

Optimizing Python Code Using Cython: A Beginner’s Introduction

by Jamey 0 Comments
Optimizing Python Code Using Cython: A Beginner’s Introduction

There are much better resources than this blog that will lead you down the rabbit hole of Cythonizing your Python code, but this is just a very easy introduction, outlining my own personal experiments as a Cython beginner, myself. In this tutorial, we will use my dictionary creation tool, brutalist, as a really bad example of how to Cythonize some Python code.

10 views

Generating Large Password Dictionaries Using Brutalist

by Jamey 0 Comments
Generating Large Password Dictionaries Using Brutalist

Brutalist is a cross-platform Python3+ based command line tool that can be used to generate very large word dictionaries based on minimal input. It can take a single word like “password” and generate up to 13,198,680 combinations using common special character substitutions and suffixes, and up to all possible 3-digit numerical suffixes with all variations of special characters appended. It is a highly-specialized tool, which should be a regular go-to in the tool belt of all red teamers and pentesters.

5 views