Blog
Building Python on Ubuntu 16.04
For this post I am specifically working on Ubuntu 16.04 but I’m sure it could work on other versions as well, however a little while back I wrote another post about building python on docker.
In this post I’m going to look at creating a chroot environment and then setting that up to complete the build. To setup the chroot environment I am going to be following along with this community post Let’s get started by installing the necessary packages
Creating a FreeBSD bootable USB on OS X
It’s pretty straightforward but I can’t remember some of the commands like I can on Linux. So I’m creating a little post for it so I don’t have to keep searching and thinking what did I do last time every time.
Download the installation media
Head over to the download page to and download the memstick image that’s right for your architecture, in my case it’s the amd64 image.
Note: Make sure to verify the checksum, in order to do this you’ll need to download the checksum file. So, at this point I have the following 2 files.
Building Python on OpenBSD 6.2
Note: If there are patches for the software you want available in the ports tree, you probably want to look at the working with ports page. However, if you want to customize your build further read on.
At the time of this writing I am in the process of building python 3.6.4. The build process could change in the future, but this is current build process, hopefully this will give someone the jumpstart they need to get going on this. It took me quite a while to find this infomation, not sure if I was going about the search in the wrong manner. Anyhow, without further ado…
Building Python on Ubuntu 14.04
While hunting for the source of a bug earlier, I thought that it might be the cause of a bad binary. To remedy this I thought that I would build python from source and now I’m creating this post for some documentation on the process. During this I was using Ubuntu 14.04 (trusty) running on docker.
First, install all the packages that will be needed for the build:
root:~/# apt-get install build-essential libz-dev libssl-dev root:~/# apt-get build-dep python3Notes:
- libz-dev is only needed if you want/need zlib support
- libssl-dev is only needed if you require ssl support.
Both of the above are needed if you want to use pip.
Mr Robot - vulnhub write up
After getting this fired up virtualbox, the first thing I did and like to do is run an nmap scan.
Huh, only http(s) ports open.
PORT STATE SERVICE VERSION 22/tcp closed ssh 80/tcp open http Apache httpd 443/tcp open ssl/http Apache httpdWhen first visiting the site, I found this in the index source code
USER_IP='208.185.115.6'I was hungup on this for quite a while. I kept thinking I could get more access if my ip address matched this but I finally moved on.Vulnhub - RickdiculouslyEasy: 1
I had some time to play on the computer this weekend, so I decided that I would look into finding a CTF. After poking around reddit for a bit I finally remembered Vulnhub, how could I have forgotten. Any how, I found this challenge on the first page and thought it looked pretty interesting. Now let’s take a look at solving it.
After booting it up on virtualbox it shows the assigned ip address, perfect. Using that I started an
nmap port scan nmap 192.168.56.102 -O -sV -p- -T4From this I can see a number of ports I can get to work on and also the first flag!Protonmail Dark Pattern?
I remember when bing used to do this on their mobile site, it would load then I would go to tap on the search box to focus my cursor and just as I was about to do that it would pop in an ad for their mobile app. Then I would have to close out of the play store and get back to actually searching.
Now it seems that protonmail is doing something similar in that I navigate to their mobile site, wait for it to load. Once it’s loaded I go to tap the menu icon and just before I do the pop in for their app appears and again off to the play store I go. about to click