Skip to content

Instantly share code, notes, and snippets.

View astarasikov's full-sized avatar
🐈
🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈

Alexander Tarasikov astarasikov

🐈
🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈
View GitHub Profile
diff --git a/fuzz/helper.py b/fuzz/helper.py
index 9185b17228..e1747b8eea 100755
--- a/fuzz/helper.py
+++ b/fuzz/helper.py
@@ -43,7 +43,7 @@ def main():
_create(FUZZER + "-crash")
_add(FUZZER + "-seed")
- cmd = ([os.path.abspath(os.path.join(THIS_DIR, FUZZER))] + sys.argv[2:]
+ cmd = ([os.path.abspath(os.path.join(THIS_DIR, FUZZER))] + ["-use_value_profile=1 "] + ["-entropic=1 "] + ["-max_len=60240" ] + sys.argv[2:]
From 10c8286b202c4f086212caaa5b6a26266b940d0b Mon Sep 17 00:00:00 2001
From: Alexander Tarasikov <alexander.tarasikov@gmail.com>
Date: Fri, 26 Feb 2021 03:47:04 +0100
Subject: [PATCH] Apply ARM64 patch from Longhorn
Base patch from
https://threedots.ovh/blog/2021/01/ghidra-for-arm-64-bit-linux-systems/
Minor changes to fix compilation for OSX ARM64
---
GPL/CabExtract/Module.manifest | 2 ++
@astarasikov
astarasikov / ffmpeg_apple_m1.md
Created January 20, 2021 00:07
build FFMPEG on Apple M1 mac with macports

Introduction

Currently "libvpx" does not build on M1 macs. Here's how to build ffmpeg without this dependency (until it's fixed). We need to create a local port and build it (it's not strictly necessary to add this port tree to /opt/local/etc/macports/sources.conf)

Copy FFMPEG port locally

sudo mkdir -p /opt/local_ports/multimedia/
sudo cp -r /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/multimedia/ffmpeg /opt/local_ports/multimedia
@astarasikov
astarasikov / gstreamer_1.10_defisheye.patch
Created January 15, 2020 01:44
gstreamer plugin for correcting fisheye lens distortion
diff -Naur ./gst/geometrictransform/gstdefisheye.c ../../gst-plugins-bad1.0-1.10.2/gst/geometrictransform/gstdefisheye.c
--- ./gst/geometrictransform/gstdefisheye.c 1970-01-01 03:00:00.000000000 +0300
+++ ../../gst-plugins-bad1.0-1.10.2/gst/geometrictransform/gstdefisheye.c 2017-01-10 02:55:38.186100000 +0300
@@ -0,0 +1,265 @@
+/*
+ * GStreamer
+ * Copyright (C) 2016 Alexander Tarasikov <alexander.tarasikov@gmail.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
@astarasikov
astarasikov / afl_patch_skip_checks_for_qemu_usermode.diff
Created September 1, 2019 22:10
AFL QEMU mode for QEMU usermode
diff --git a/afl-fuzz.c b/afl-fuzz.c
index a4b0e15..1543857 100644
--- a/afl-fuzz.c
+++ b/afl-fuzz.c
@@ -6934,7 +6934,7 @@ EXP_ST void check_binary(u8* fname) {
" QEMU or Unicorn mode (-Q or -U). This is probably not what you want -\n"
" this setup will be slow and offer no practical benefits.\n");
- FATAL("Instrumentation found in -Q or -U mode");
+ //FATAL("Instrumentation found in -Q or -U mode");
@astarasikov
astarasikov / opencv_android.diff
Created June 9, 2019 02:47
compiling OpenCV for Android with OpenCL support
commit 5f17f284266fcc3d78d28c08f20b0bbb71584ae2
Author: Alexander Tarasikov <alexander.tarasikov@gmail.com>
Date: Sun Feb 19 01:16:54 2017 +0100
OpenCL Hacks
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71b4b3608..223f75f95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@astarasikov
astarasikov / RenameFunctionsFromDebugPrints.java
Last active June 25, 2024 01:40
Ghidra script to rename functions from debug prints
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@astarasikov
astarasikov / convert_teegris_tas.py
Last active August 31, 2024 02:44
Exynos9820 TEEGRIS TZAR unpack script
#!/usr/bin/env python3
# Usage: python convert_teegris_tas.py ~/Downloads/sw/pda/s10/fw/fw_G973FXXU4BTA8/AP/vendor/tee/
import os
import sys
from textwrap import wrap
def teegris_ta_to_elf(path_from, path_to):
with open(path_from, 'rb') as fin:
with open(path_to, 'wb') as fout:
Used the rootfs from:
https://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Images/Apalis-TK1_LXDE-Image_2.8b3.111-20180626.tar.bz2
Use the Aravis binaries from:
https://drive.google.com/drive/folders/1ZW8HGW0nQkewQoyJt5r-BXwAsdFAAWdK?usp=sharing
###############################################################################
# Running TK1 rootfs on X86 host in Chroot for Testing
###############################################################################
wget https://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Images/Apalis-TK1_LXDE-Image_2.8b3.111-20180626.tar.bz2
@astarasikov
astarasikov / 0001-webrtcbin-an-element-that-handles-the-transport-aspe.patch
Last active June 11, 2019 17:02
GstWebRTC backport for OpenEmbedded/Angstrom
From e465847873fdb54de7bc834c2d3d78639b98427a Mon Sep 17 00:00:00 2001
From: Matthew Waters <matthew@centricular.com>
Date: Tue, 31 Jan 2017 20:56:59 +1100
Subject: [PATCH] webrtcbin: an element that handles the transport aspects of
webrtc connections
SDP's are generated and consumed according to the W3C PeerConnection API
available from https://www.w3.org/TR/webrtc/
The SDP is either created initially from the connected