To update clock summary, place cursor on BEGIN and press C-c C-c.
Clock summary at [2014-07-31 Thu 12:39]
Effort | Headline | Time | |
---|---|---|---|
Total time | 0:55 | ||
Top Level Item | 0:55 |
#!/usr/bin/env python | |
# Quick and dirty demonstration of CVE-2014-0160 by | |
# Jared Stafford (jspenguin@jspenguin.org) | |
# Modified so that it finds cookies | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
firewall: | |
groups: | |
all: [clupea, salmon, skate] | |
test: [clupea] | |
rules: | |
clupea: | |
- port: 22 | |
- port: 80 |
% openssl s_client -connect lk.megafon.ru:443 -verify 3 | |
verify depth is 3 | |
depth=0 /1.3.6.1.4.1.311.60.2.1.3=RU/businessCategory=Private Organization/serialNumber=1027809169585/C=RU/ST=Moscow/L=Moscow/O=OJSC MegaFon/CN=lk.megafon.ru | |
verify error:num=20:unable to get local issuer certificate | |
verify return:1 | |
depth=0 /1.3.6.1.4.1.311.60.2.1.3=RU/businessCategory=Private Organization/serialNumber=1027809169585/C=RU/ST=Moscow/L=Moscow/O=OJSC MegaFon/CN=lk.megafon.ru | |
verify error:num=27:certificate not trusted | |
verify return:1 | |
depth=0 /1.3.6.1.4.1.311.60.2.1.3=RU/businessCategory=Private Organization/serialNumber=1027809169585/C=RU/ST=Moscow/L=Moscow/O=OJSC MegaFon/CN=lk.megafon.ru | |
verify error:num=21:unable to verify the first certificate |
console_app.controller("MyCtrl", list("$scope", "$http", (function($scope, $http) { | |
return console.log("DONE"); | |
}))); |
(= tests `()) | |
(def pr line | |
(process.stdout.write line)) | |
(def prn line | |
(pr (+ line "\n"))) | |
(mac test name ...body |
To update clock summary, place cursor on BEGIN and press C-c C-c.
Clock summary at [2014-07-31 Thu 12:39]
Effort | Headline | Time | |
---|---|---|---|
Total time | 0:55 | ||
Top Level Item | 0:55 |
# ... | |
def block(**modifiers): | |
def decorator(func): | |
@wraps(func) | |
def wrapper(*args, **kwargs): | |
"""Этот декоратор реализует отложенный вызов функции, которую он декорирует. | |
По сути, он возвращает promice, который при вызове, уже зовет реальную функцию. | |
""" | |
def ret(): |
# first check | |
sudo salt '*' cmd.run \ | |
'bash -c "echo Bash Test"' \ | |
'env={"VAR": "() { :;}; echo Bash is vulnerable.", "FUNCTION()": "() { :;}; echo Bash is vulnerable."}' | |
# and then upgrade if needed | |
sudo salt '*' cmd.run \ | |
'apt-get update && apt-get install --only-upgrade bash' |
kupi_baton() | |
if there_are_eggs_on_the_shell(): | |
for x in range(10): | |
kupi_baton() |
(mac mknode name | |
`(mac ,name ,attrs ,children | |
`(fn ((get React.DOM name) ,attrs ,children)))) | |
(mknode div) | |
(mknode ul) | |
(mknode p) | |
; ... | |
(= CommentBox (React.createClass |