Skip to content

Instantly share code, notes, and snippets.

View ia's full-sized avatar
💡

Ivan Zorin ia

💡
View GitHub Profile
@ia
ia / build.log
Created July 28, 2023 00:00
buggy gcc lto glitch?
This file has been truncated, but you can view the full file.
2023-07-27T23:49:11.7838157Z Requested labels: ubuntu-20.04
2023-07-27T23:49:11.7838521Z Job defined at: ia/IronOS-plus/.github/workflows/push.yml@refs/heads/push-cmds
2023-07-27T23:49:11.7838700Z Waiting for a runner to pick up this job...
2023-07-27T23:49:14.3627515Z Job is waiting for a hosted runner to come online.
2023-07-27T23:49:17.5125728Z Job is about to start running on the hosted runner: GitHub Actions 9 (hosted)
2023-07-27T23:49:20.1633086Z Current runner version: '2.307.1'
2023-07-27T23:49:20.1659079Z ##[group]Operating System
2023-07-27T23:49:20.1659606Z Ubuntu
2023-07-27T23:49:20.1659879Z 20.04.6
2023-07-27T23:49:20.1660167Z LTS
@ia
ia / build.log
Created June 14, 2023 09:42
LOG: IronOS #1699 build
This file has been truncated, but you can view the full file.
====>>>> Building for TS100 ...
========>>>>>>>> Building for TS100 / BG ...
========>>>>>>>> $ make -j16 model=TS100 firmware-BG
Building for Miniware
Building file: ./Startup/startup_stm32f103t8ux.S
In file included from Core/Threads/OperatingModes/ShowStartupWarnings.cpp:1:
./Core/Drivers/HUB238.hpp:6:5: warning: "POW_PD_EXT" is not defined, evaluates to 0 [-Wundef]
6 | #if POW_PD_EXT == 1
@ia
ia / IronOS_build.sh
Created June 7, 2023 23:58
Custom personal script to build IronOS for every supported model/language
#!/usr/bin/env bash
set -e
# To build:
# $ time ./build_local.sh 2>&1 | tee -a makeALL.log
# To clean:
# $ make clean && rm -Rf Release Release_Z makeALL.log
langs="BG CS DA DE EN ES FI FR HR HU IT LT NL NL_BE NB PL PT RU SK SL SR_CYRL SR_LATN SV TR UK VI JA_JP YUE_HK ZH_CN ZH_TW"
@ia
ia / femtocom
Last active May 4, 2023 17:02
femtocom - bash wrapper for picocom
#!/usr/bin/env bash
### Documentation (sort of)
#
# config sample of ~/.femtocomrc by hardcoded variable CONF
# $ cat ~/.femtocomrc
#
#
# ; options from this section will be applied to ALL configurations
# [GLOBAL]
@ia
ia / ssh-keygen-helper.sh
Created July 28, 2022 12:17
Quick-&-dirty helper script to generate ssh key pair & related config section
#!/usr/bin/env bash
set -e
set -x
usage()
{
echo "Usage: ${0} localhostname username serverhostname [ssh_alias remotehostname]"
echo "Info:"
echo -e "\tlocalhostname - for convinience purpose in key config"
@ia
ia / android_lkm_rootkit.c
Created June 6, 2022 21:57
LEGACY: Android Linux Kernel-mode rootkit // source/date: unknown
#include <linux/module.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/sched.h>
@ia
ia / brute_ap.sh
Created June 5, 2021 18:07
Brute-force AP with known BSSID with passwords from passwords.txt file
#!/usr/bin/env bash
#set -e
#set -x
# Target AP BSSID name
TARGET_AP="my_own_ap"
# Relative/absolute file path to a file with a list of passwords
# (file format: one line - one password, no comments nor anything else)
@ia
ia / one_liners.sh
Last active May 3, 2023 23:10
useful personal oneliners in bash
#!/usr/bin/env bash
#set -e
#set -x
# generate TOC from markdown file with ## & ### titles (V2)
cat README.md \
| grep "^##" | sed '/##.*/p;s/\(.*\)/\L\1/;s,## ,,g;s,?,,g;s, ,-,g;s,^,(#,;s,$,),' | grep -v -e "Contents$" -e "contents)$" | tr '\n' ' ' | sed 's, ##,\n##,g;s, (,](,g;s,## , * [,g;' | sed 's,^ \* , * ,g; s,^\# \* , * ,; s,(##,(#,;'
@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
@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