Skip to content

Instantly share code, notes, and snippets.

View 0xmanhnv's full-sized avatar
😀
Out sick

Manhnv 0xmanhnv

😀
Out sick
View GitHub Profile
@0xmanhnv
0xmanhnv / kubernetes_architecture.md
Created January 11, 2019 06:37
Kiến trúc của Kubernetes

Tổng quan Kubernetes

Kubernetes là một công cụ quản lý container mã nguồn mở, tự động hóa việc deploy container, scaling container và load balancing container.

  • Được viết trên Golang, có một cộng đồng lớn vì được phát triển đầu tiên bởi Google và sau đó là CNCF
  • Có thể nhóm nhiều container thành một đơn vị logic để quản lý và deploy chúng dễ dàng.

Note: Kubernetes không phải là một nền tảng container. Nó là một giải pháp quản lý multi container

Tính năng của Kubernetes

(() => {
/*
** Author: @MonokaiJsp (MonokaiJs | omfg.vn)
** Home: https://monokai.dev
** Please credit me if you're interested in my work :D
** DO NOT remove these credit line when sharing!
*/
const exceptions = ['100030089564311', '100011158877849', '100001467593814'];
@0xmanhnv
0xmanhnv / phone-search.py
Created February 12, 2020 14:16 — forked from DevonThomas/phone-search.py
OSINT Phone Search tool inspired by Michael Bazzell's previously public tool.
import webbrowser
areaCode = input("What is the area code of the phone number? ")
middle3 = input("What are the middle 3 digits? ")
last4 = input("What are the last 4 digits? ")
phoneNumber = str(areaCode) + str(middle3) + str(last4)
fourOneOne = "https://www.411.com/phone/" + "1-" + str(areaCode) + "-" + str(middle3) + "-" + str(last4)
webbrowser.open(fourOneOne)
@0xmanhnv
0xmanhnv / phone-search.py
Created February 12, 2020 14:16 — forked from DevonThomas/phone-search.py
OSINT Phone Search tool inspired by Michael Bazzell's previously public tool.
import webbrowser
areaCode = input("What is the area code of the phone number? ")
middle3 = input("What are the middle 3 digits? ")
last4 = input("What are the last 4 digits? ")
phoneNumber = str(areaCode) + str(middle3) + str(last4)
fourOneOne = "https://www.411.com/phone/" + "1-" + str(areaCode) + "-" + str(middle3) + "-" + str(last4)
webbrowser.open(fourOneOne)
@0xmanhnv
0xmanhnv / sha256-hmac.md
Created May 4, 2020 04:09 — forked from jasny/sha256-hmac.md
Hashing examples in different languages

Example inputs:

Variable Value
key the shared secret key here
message the message to hash here

Reference outputs for example inputs above:

| Type | Hash |

@0xmanhnv
0xmanhnv / Python-Exploit-Server.py
Created January 7, 2021 10:51 — forked from tejastank/Python-Exploit-Server.py
Python Exploit Server
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import socket
import cPickle
class ExploitServer():
def run(self):
HOST = '127.0.0.1'
PORT = 8080
// start with:
// frida -U -l pinning.js -f [APP_ID] --no-pause
Java.perform(function () {
console.log('')
console.log('===')
console.log('* Injecting hooks into common certificate pinning methods *')
console.log('===')
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
@0xmanhnv
0xmanhnv / escape.js
Created April 4, 2021 13:25 — forked from jcreedcmu/escape.js
Escaping nodejs vm
////////
// The vm module lets you run a string containing javascript code 'in
// a sandbox', where you specify a context of global variables that
// exist for the duration of its execution. This works more or less
// well, and if you're in control of the code that's running, and you
// have a reasonable protocol in mind// for how it expects a certain
// context to exist and interacts with it --- like, maybe a plug-in
// API for a program, with some endpoints defined for it that do
// useful domain-specific things --- your life can go smoothly.

Safer-Eval Sandbox Escape POC

safer-eval is a node JS library that supposedly provides a 'safe' way to 'eval' untrusted javascript.

As the maintainer warns in the README:

Warning: The saferEval function may be harmful - so you are warned!

However, it is still used by various libraries to parse/execute untrusted code in such a way that there is an implied