Skip to content

Instantly share code, notes, and snippets.

View tuantmb's full-sized avatar
😹

Tuan T tuantmb

😹
  • Vietnam
View GitHub Profile
@tuantmb
tuantmb / firewall-cmd.bash-completion
Created January 12, 2019 16:09
bash completion for firewall-cmd
# bash completion for firewall-cmd -*- shell-script -*-
# Copyright (C) 2013 Red Hat, Inc.
#
# Authors:
# Jiri Popelka <jpopelka@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@tuantmb
tuantmb / LICENCE SUBLIME TEXT
Created January 13, 2019 15:44
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@tuantmb
tuantmb / gist:f59fbd66d54f7f3a7e1aa1eb11faefec
Created January 25, 2019 02:11
Benmark SSH Throughput
yes | pv | ssh $host "cat > /dev/null"
pv /dev/zero|ssh $host 'cat > /dev/null'
@tuantmb
tuantmb / sshtranger_things.py
Created January 26, 2019 07:34 — forked from mehaase/sshtranger_things.py
SSHtranger Things Exploit POC
'''
Title: SSHtranger Things
Author: Mark E. Haase <mhaase@hyperiongray.com>
Homepage: https://www.hyperiongray.com
Date: 2019-01-17
CVE: CVE-2019-6111, CVE-2019-6110
Advisory: https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
Tested on: Ubuntu 18.04.1 LTS, OpenSSH client 7.6p1
We have nicknamed this "SSHtranger Things" because the bug is so old it could be
@tuantmb
tuantmb / list_extension.sh
Created January 28, 2019 11:19
List all extensions in current directory (recursive)
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
@tuantmb
tuantmb / change_default_session.sh
Created January 30, 2019 01:33
Kali Linux change default session
update-alternatives --config x-session-manager
@tuantmb
tuantmb / Dockerfile
Created January 31, 2019 00:07
try install statping on heroku
FROM alpine:latest
MAINTAINER "tuantmb@github.com"
ENV IS_DOCKER=true
ENV STATPING_DIR=/app
ENV PORT=8080
# try to minimize script install.sh without any bash/awk functions
RUN apk add --no-cache bash gawk sed grep bc coreutils
RUN apk --no-cache add curl jq
@tuantmb
tuantmb / easy_keygenme_solution.md
Last active February 6, 2019 10:50
Solution for Easy_keygenme from reversing.kr
This is just a simple reversing challenge from reversing.kr. All I want to revise my reverse engineering skills because I haven't put my hand on R.E. for a long time.
  • Target: http://reversing.kr/download.php?n=2
  • Tools: IDA (to make an overview of binary code, IDA will be prefered than OllyDbg or x64Dbg or any debugger)
  • Steps:
    • Run application to view the work flow
      1. User inputs the name
      2. User inputs the serial
    
@tuantmb
tuantmb / gist:efa46694ec582b9933e6bf02ee1c46ff
Created March 20, 2019 02:30 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

@tuantmb
tuantmb / demo_auto_click.au3
Last active March 30, 2019 02:18
Demo auto click using autoit code
; Best Practice:
;
; - Start new applition every session you want to do your task
; (because this application uses multi tabs, choose wrong tab then click with absolute coordinates ==> you fail)
; Finish session => close application to release resource
; - Fix position of your application before doing anything
; - Use Sleep(500) to debug (view step by step every code)
; - Run autoit application with UAC(Administrator) ìf needs (because ISD-VPE2100 required UAC(Administrator),
; so to avoid permission problems, run your autoit application with the same permission with ISD-VPE2100)