Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ido Kanner ik5

🎯
Focusing
  • :::1
View GitHub Profile
View resources.md

Assembly Language / Reversing / Malware Analysis -resources

Twitter: Muffin

Assembly Language

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View vim_cheatsheet.md

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@ik5
ik5 / gist:6e383127ef12b5eb1281df3948d6458f
Created Mar 12, 2019 — forked from milosgajdos/gist:296fb90d076f259a5b0a
Add a MAC VLAN interfaces into Docker from the host machine
View gist:6e383127ef12b5eb1281df3948d6458f
package main
import (
"fmt"
"log"
"net"
"github.com/milosgajdos83/tenus"
)
@ik5
ik5 / gist:5ae5a706397b0f4e90df1101b2494f6f
Created Mar 12, 2019 — forked from milosgajdos/gist:9f68b1818dca886e9ae8
Add a VLAN interfaces into Docker from the host machine
View gist:5ae5a706397b0f4e90df1101b2494f6f
package main
import (
"fmt"
"log"
"net"
"github.com/milosgajdos83/tenus"
)
@ik5
ik5 / gist:65de721ca495fa1bf451
Last active Aug 5, 2020 — forked from bradleypeabody/gist:185b1d7ed6c0c2ab6cec
golang, convert UTF-16 to UTF-8 string
View gist:65de721ca495fa1bf451
package main
import "fmt"
import "unicode/utf16"
import "unicode/utf8"
import "bytes"
func main() {
b := []byte{
View sshsock.rb
require 'rubygems'
require 'ffi'
module SSHSocket
extend FFI::Library
ffi_lib_flags :now, :global
ffi_lib 'libssh'
attach_function :ssh_init, [], :int
attach_function :ssh_bind_new, [], :pointer
@ik5
ik5 / ugly :(
Last active Aug 29, 2015 — forked from bararchy/ugly :(
View ugly :(
def check_s_client
server = 'Generel Settings: '
renegotiation = 'Insecure Renegotiation'.colorize(:red)
crime = 'SSL Compression Enabled <= CRIME - CVE-2012-4929'.colorize(:red)
results = %x(echo "q" | openssl s_client -host #{@server} -port #{@port} 2> /dev/null) # why ?
case results.downcase
when 'secure renegotiation is supported'
renegotiation = 'Secured Renegotiation'.colorize(:green)
when 'compression: none'
View adhearsion.god
# run with: rvmsudo god -c /srv/phone/phonzy/current/ahn/config/god/adhearsion.god
# debug with: rvmsudo god quit && rvmsudo god -c /srv/phone/phonzy/current/ahn/config/god/adhearsion.god -D
@deploy_path = '/srv/phone/phonzy'
@shared_path = File.join @deploy_path, 'shared'
@app_path = File.join @deploy_path, 'current', 'ahn'
@log_path = File.join @shared_path, 'log'
@pid_path = File.join @shared_path, 'pids'
@pid_file = File.join @pid_path, 'adhearsion.pid'
@god_env = YAML.load_file("#{@shared_path}/config/god_environment.yml")
@ik5
ik5 / exec.rb
Last active Dec 17, 2015 — forked from anonymous/exec.rb
Allow to execute commands using Ruby that arrives from gem and using Bundler Gemfile
View exec.rb
$BASE_PATH = File.expand_path(File.dirname(__FILE__) + '/..')
# also find your own gem files for the executable
$LOAD_PATH.unshift($BASE_PATH + '/lib')
require 'bundler'
ENV["BUNDLE_GEMFILE"] = $BASE_PATH + '/Gemfile'
Bundler.require(:default)
You can’t perform that action at this time.