Skip to content

Instantly share code, notes, and snippets.

View zwetan's full-sized avatar
🌀
getting shit done

Zwetan Kjukov zwetan

🌀
getting shit done
View GitHub Profile
@zwetan
zwetan / dump_output
Created May 1, 2020 11:48
example output of redtamarin.swc using internal ABC disassembler
found 24 abc
found 1379 definitions
AS3
AVM2
ArgumentError
Array
Boolean
Class
Date
@zwetan
zwetan / Test2.as
Last active June 23, 2018 05:11
Detect AIR SWF version
package
{
public class Test
{
public function Test()
{
trace( "SWF version = " + _parseSWFVersion() );
}
@zwetan
zwetan / Test.as
Created March 12, 2018 21:18
Detect if Windows AIR executable is 32-bit or 64-bit by parsing the PE format
package
{
public class Test
{
private var _is64bit:Boolean;
public function Test()
{
_is64bit = false;
@zwetan
zwetan / setup.sh
Last active January 31, 2018 23:29
Install as3shebang on Cloud Shell
#!/bin/bash -e
# functions
check_tool() {
command -v "$1" >/dev/null 2>&1 || (echo "You need to install '$1'" && exit 2)
}
find_tool() {
local result=`command -v "$1"`;
@zwetan
zwetan / phrackjs.as
Created October 27, 2016 16:28
download and extract Phrack uuencoded stuff
#!/usr/bin/as3shebang
import shell.*;
var name:String = "attacking_javascript_engines.html";
if( FileSystem.exists( name ) )
{
FileSystem.remove( name );
}
@zwetan
zwetan / phrack69.as
Last active May 6, 2016 22:29
download and extract Phrack uuencoded stuff
#!/usr/bin/as3shebang
import shell.*;
var name:String = "13.html";
if( FileSystem.exists( name ) )
{
FileSystem.remove( name );
}
@zwetan
zwetan / MaterialDesignPalette.as
Created April 20, 2016 15:43
Material Design Colors
package corsaair.bootstrap.ui.colors
{
/**
* Google's Meterial Design Palette class.
*
* <p>
* This color palette comprises primary and accent colors
* that can be used for illustration or to develop your
* brand colors.
package flash.net
{
import C.arpa.inet.*;
import C.errno.*;
import C.netdb.*;
import C.netinet.*;
import C.sys.socket.*;
import C.unistd.*;
/* Usage:
public class Something
{
private var _mutex:Mutex;
private var _commands:WorkerConnection;
public function say( message:String ):void
{
@zwetan
zwetan / redtamarin-install.sh
Created March 1, 2016 03:20
Redtamarin Prod Install script (Ubuntu 14.04.4 LTS 64-bit)
#!/bin/bash
# _____ _ _ __ __ __
# / ___/__ _______ ___ ____ _(_)___ / |/ /__ / /__ _____ ____/ /__ ___
# / /__/ _ \/ __(_-</ _ `/ _ `/ / __/ / / -_) __/ |/|/ / _ \/ __/ '_/(_-<
# \___/\___/_/ /___/\_,_/\_,_/_/_/ /_/|_/\__/\__/|__,__/\___/_/ /_/\_\/___/
# ---------------------------------------------------------------------------
# date: 2016-02-26
# desc: Make a full redtamarin install
# deps: Ubuntu 14.04.4 LTS