Skip to content

Instantly share code, notes, and snippets.

import thread
import win32com.client
import time
labview = win32com.client.Dispatch("Labview.Application")
VI = labview.getvireference(r'C:\path\to\target.vi')
def run_app():
VI.run()
_swpints input parameter list [int b2b, int b2c]
output parameter list[int c2b, int c2c];
c2b<---b2c;
c2c<---b2b;
return [c2b, c2c];
end
_swprecs input parameter list [record #rec d5b, record #rec d2c]
output parameter list[record #rec d5c, record #rec d2b];
@h4ck3rk3y
h4ck3rk3y / format.lua
Last active August 29, 2015 14:26 — forked from dmiller-nmap/format.lua
WIP Formatting library for NSE
---
-- Formatting functions for script output
--
local stdnse = require "stdnse"
local table = require "table"
local string = require "string"
local debug = require "debug"
local _R = debug.getregistry()
_ENV = stdnse.module("format", stdnse.seeall)
@h4ck3rk3y
h4ck3rk3y / ssl.patch
Last active August 29, 2015 14:23
Gist of the Patch
diff --git a/scripts/ssl-enum-ciphers.nse b/scripts/ssl-enum-ciphers.nse
index 94d5294..2b237d3 100644
--- a/scripts/ssl-enum-ciphers.nse
+++ b/scripts/ssl-enum-ciphers.nse
@@ -138,6 +138,8 @@ categories = {"discovery", "intrusive"}
-- http://seclists.org/nmap-dev/2012/q3/156
-- http://seclists.org/nmap-dev/2010/q1/859
local CHUNK_SIZE = 64
+local have_ssl, _ = pcall(require,'openssl')
@h4ck3rk3y
h4ck3rk3y / output
Created June 24, 2015 18:37
SSL enum output if open ssl isn't present
| ssl-enum-ciphers:
| TLSv1.0:
| ciphers:
| TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
| TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
| TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
| TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
| TLS_RSA_WITH_AES_128_CBC_SHA
| TLS_RSA_WITH_AES_256_CBC_SHA
| TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
@h4ck3rk3y
h4ck3rk3y / lua
Last active August 29, 2015 14:17
corrections in http-vuln-cve2014-7236
local payload = '/'.. path .. '/do/view/Main/WebHome?debugenableplugins=BackupRestorePlugin%3bprint("Content-Type:text/html\\r\\n\\r\\n'..rand..'!")%3bexit'
payload = payload:gsub('//','/')