Skip to content

Instantly share code, notes, and snippets.

View ia's full-sized avatar
💡

Ivan Zorin ia

💡
View GitHub Profile
@ia
ia / membyte.c
Created January 23, 2013 20:51
ip masking basic sample
#include <stdio.h>
#include <stdlib.h>
int membyte(unsigned char *b1, unsigned char *b2, unsigned char *b3, int len)
{
unsigned char *tmp = malloc(len);
printf("\n");
int i = 0;
for (i = 0; i < len; i++) {
@ia
ia / cryptfs_info.txt
Last active May 9, 2016 20:09
cyanogenmod: cryptfs issue
Steps to reproduce:
- prepare image: build manually using wiki [ http://wiki.cyanogenmod.org/w/Build_for_maguro ; branch: cm-12.1 ] or download cm-12.1-20150728-UNOFFICIAL-maguro.zip using the link: http://forum.xda-developers.com/devdb/project/dl/?id=13736
- boot recovery (e.g. TWRP)
- wipe all
- flash zip
- boot system
- charge battery upper than 80%
- enable lock screen using "Settings"
- enable encryption using "Settings > Security > Encrypt phone"
# fw_type will always be developer for Mario.
# Alex and ZGB need the developer BIOS installed though.
fw_type="`crossystem mainfw_type`"
if [ ! "$fw_type" = "developer" ]
then
echo -e "\nYou're Chromebook is not running a developer BIOS!"
echo -e "You need to run:"
echo -e ""
echo -e "sudo chromeos-firmwareupdate --mode=todev"
echo -e ""
@ia
ia / 9sgchs.sh
Created August 6, 2017 11:54
Backup of ChrUbuntu script from http://chromeos-cr48.blogspot.ru - x86-only
usage()
{
cat << EOF
usage: $0 options
ChrUbuntu installation script.
OPTIONS:
-h show help.
-m Ubuntu metapackage to install such as xubuntu-desktop, kubuntu-desktop or ubuntu-minimal. Default is ubuntu-desktop
@ia
ia / tnyga.sh
Created August 6, 2017 12:18
Backup of ChrUbuntu script from http://chromeos-cr48.blogspot.ru - intel-only
# fw_type will always be developer for Mario.
# Alex and ZGB need the developer BIOS installed though.
fw_type="`crossystem mainfw_type`"
if [ ! "$fw_type" = "developer" ]
then
echo -e "\nYou're Chromebook is not running a developer BIOS!"
echo -e "You need to run:"
echo -e ""
echo -e "sudo chromeos-firmwareupdate --mode=todev"
echo -e ""
#!/bin/sh
#
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This attempts to guide linux users through the process of putting a recovery
# image onto a removeable USB drive.
#
# We may not need root privileges if we have the right permissions.
@ia
ia / twit.sh
Created September 12, 2017 16:50
LEGACY: simpe script for posting in twitter/juick
#!/bin/bash
#*
#* twitsh - twitting/juicking from terminal
#* Copyright (C) 2008,2009 ia
#*
#* twitsh is free software.
#*
#* You may redistribute it and/or modify it under the terms of the
#* GNU General Public License, as published by the Free Software
@ia
ia / config-keeper.sh
Created September 18, 2017 12:32
LEGACY: simple script to track config files via git
#!/bin/sh
#*
#* config-keeper - moves configs in dir and makes git repo in it
#* Copyright (C) 2009 ia
#*
#* config-keeper is free software.
#*
#* You may redistribute it and/or modify it under the terms of the
#* GNU General Public License, as published by the Free Software
@ia
ia / radio.sh
Created September 18, 2017 12:52
LEGACY: bladerf/openbts routine
#!/usr/bin/env bash
# WTFPL license
# firmware links:
# https://www.nuand.com/fx3/bladeRF_fw_v1.9.1.img
# https://www.nuand.com/fx3/bladeRF_fw_v1.9.1.img.sha256sum
# https://www.nuand.com/fpga/v0.6.0/hostedx40.rbf
# https://www.nuand.com/fpga/v0.6.0/hostedx40.rbf.sha256sum
# https://www.nuand.com/fpga/v0.6.0/hostedx115.rbf
# https://www.nuand.com/fpga/v0.6.0/hostedx115.rbf.sha256sum
@ia
ia / chromebook-arm-exynos-kali.sh
Created September 4, 2018 01:06
build script for flashable image of gnulinux debian kali distro for arm-based exynos-enabled chromebooks
#!/bin/bash
# Kali-ARM-Build-Scripts
# ======================
#
# Offensive Security Kali Linux ARM build scripts. We use these to build our official Kali Linux ARM images,
# as can be found at http://www.kali.org/downloads/
#
# - These scripts have been tested on a Kali Linux 32 and 64 bit installations only, after making sure