Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
"""
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:
[
{"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
snj / Emmet.sublime-settings
Created March 13, 2017 00:47
Sublime Text 3 の Emmet で ctrl+e では展開させずに行末移動させる
# Preferences - Package Settings - Emmet - Key Bindings(User)
[
{
"keys": [
"shift+space"
],
"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)
JIRA_PROJECT = 'PRO'
GITLAB_URL = 'http://your-gitlab-url.tld/'
"*":
core: {}
editor:
invisibles: {}
showIndentGuide: true
showInvisibles: true
softWrap: true
welcome:
showOnStartup: false
# ===================================================================
# like emacs
# ===================================================================
'atom-workspace atom-text-editor:not([mini])':
# ファイルの先頭へ移動
'ctrl-up': 'core:move-to-top'
# ファイルの最後へ移動
#!/usr/bin/env python2
import requests
from iso3166 import countries
url="http://example.com/path/to/it"
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:
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
$ time /opt/john-1.7.9-jumbo-7/run/john -i=digits --stdout|while read pw;do echo $pw;unzip -pqq -P $pw passwd.zip 2>&1 1>/dev/null && break;done