Skip to content

Instantly share code, notes, and snippets.


KINOSHITA Shinji snj

  • Tokyo
View GitHub Profile
View Port Knocking with Scapy Example
Port Knocking with scapy example.
Knock on port 42304
Knock on port 53768
Knock on port 3297
HTTP request to port 19760
Now, to get the flag, we just need to write a small scrip to implement all this logic. We will use the scapy python library to perform the port knocking and curl for the HTTP request part:
View sublime-keymap.json
{"keys": ["ctrl+k"], "command": "jove_move_then_delete", "args": {"move_cmd": "jove_move_for_kill_line"}},
{"keys": ["ctrl+y"], "command": "jove_yank"},
{ "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
{ "keys": ["ctrl+shift+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} },
snj / Emmet.sublime-settings
Created Mar 13, 2017
Sublime Text 3 の Emmet で ctrl+e では展開させずに行末移動させる
View Emmet.sublime-settings
# Preferences - Package Settings - Emmet - Key Bindings(User)
"keys": [
"args": {
"action": "expand_abbreviation"
"command": "run_emmet_action",
import requests
from requests.auth import HTTPBasicAuth
import re
from StringIO import StringIO
JIRA_URL = 'https://your-jira-url.tld/'
JIRA_ACCOUNT = ('jira-username', 'jira-password')
# the JIRA project ID (short)
GITLAB_URL = 'http://your-gitlab-url.tld/'
View config.cson
core: {}
invisibles: {}
showIndentGuide: true
showInvisibles: true
softWrap: true
showOnStartup: false
View keymap.cson
# ===================================================================
# like emacs
# ===================================================================
'atom-workspace atom-text-editor:not([mini])':
# ファイルの先頭へ移動
'ctrl-up': 'core:move-to-top'
# ファイルの最後へ移動
View tor exit
#!/usr/bin/env python2
import requests
from iso3166 import countries
cookies = dict(session='dcd83eacd7b3518b0d5064ce957d606218cc15616ec72c18cd866a9972aca6fb')
data= requests.get(url,cookies=cookies,verify=False).content
lines = data.split('\n')
flags = []
for i in lines:
if "inactive" in i:
View gist:8276229
// Source:!topic/angular/hVrkvaHGOfc
// jsFiddle:
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
View gist:7079756
$ time /opt/john-1.7.9-jumbo-7/run/john -i=digits --stdout|while read pw;do echo $pw;unzip -pqq -P $pw 2>&1 1>/dev/null && break;done