Skip to content

Instantly share code, notes, and snippets.

View henices's full-sized avatar

zz of NSFOCUS Security Team henices

View GitHub Profile
@henices
henices / trc2sql.perl
Last active December 14, 2015 13:59
Extract SQL from an Oracle SQL Trace File (10046)
#!/usr/bin/perl
# David Mann
# ba6.us
# Extract SQL from an Oracle SQL Trace File (10046)
#
# Usage:
# Data is read from STDIN
# trc2sql.pl output.sql
#
#! /bin/sh
for line in `cat /tmp/CVE-id.txt`; do
curl -s --socks5-hostname 127.0.0.1:9999 "http://www.cvedetails.com/cve-details.php?t=1&cve_id=$line" | grep -E '"Product Details "' > /tmp/product
FLAG=0
for type in Powerpoint Word Excel; do
@henices
henices / convertname.pl
Created April 9, 2014 08:50
convert file name to utf-8
#! /usr/bin/perl -w
# rename the gbk filename to utf-8
use strict;
use Encode;
my $dir = $ENV{'PWD'};
opendir DIR, $dir or die "Can not open \"$dir\"\n";
my @filelist = readdir DIR;
my $file = '';
for $file (@filelist)
@henices
henices / dns_zone_transfer.pl
Last active September 29, 2015 04:16
DNS zone transfer vulnerability check
#! /usr/bin/perl -w
use warnings;
print ">> try to find dns server ....\n\n";
my $ret = `dig $ARGV[0] NS`;
#print $ret;
@lines = split /\n/, $ret;
//--------------------------------------
// File: ARSCTemplate.bt
// Author: ZaiRoN (@_zairon_ www.zairon.wordpress.com)
// File mask: *.arsc
// Purpose: to parse Android arsc resource files
#define RES_STRING_POOL_TYPE 0x0001
#define RES_TABLE_TYPE 0x0002
#define RES_TABLE_PACKAGE_TYPE 0x0200
#define RES_TABLE_TYPE_TYPE 0x0201
@henices
henices / select.vbs
Last active September 1, 2016 15:20
Set objFSO = CreateObject("Scripting.FileSystemObject")
outputDir = "C:\output"
objStartFolder = "C:\Rainbow\"
filename = "C:\文件名.txt"
If objFSO.FolderExists(outputDir) Then
objFSO.DeleteFolder(outputDir)
End If
@henices
henices / gist:23fa6bb43eecf1019ace525a3125eb3c
Created July 5, 2017 08:58 — forked from totherik/gist:3a4432f26eea1224ceeb
v8 --allow-natives-syntax RuntimeFunctions
Per https://code.google.com/p/v8/codesearch#v8/trunk/src/runtime.cc
%CreateSymbol
%CreatePrivateSymbol
%CreateGlobalPrivateSymbol
%NewSymbolWrapper
%SymbolDescription
%SymbolRegistry
%SymbolIsPrivate
#! /bin/sh
echo core >/proc/sys/kernel/core_pattern
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo 1 >/proc/sys/kernel/sched_child_runs_first
echo 1 >/proc/sys/kernel/sched_autogroup_enabled
cd /sys/devices/system/cpu
echo performance | tee cpu*/cpufreq/scaling_governor
@henices
henices / compile_vnote_fedora.md
Created October 16, 2019 06:27
compile VNote in Fedora
[CVE ID]
CVE-2020-26664
[PRODUCT]
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols.
[AFFECTED VERSION]
VLC media player 3.0.11 and earlier version.
[PROBLEM TYPE]