This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.DataInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.sql.Date; | |
import java.util.Calendar; | |
public class SCIDReader { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MS SQL Commands */ | |
exec sp_configure 'show advanced options', 1 | |
RECONFIGURE | |
exec sp_configure 'xp_cmdshell', 1 | |
RECONFIGURE | |
exec sp_MSforeachtable 'master..xp_cmdshell ''bcp "SELECT * FROM DBName.?" queryout "Z:\?.txt" -S localhost -T -c -q''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
const MQ_SEND_ACCESS = 2 | |
const MQ_DENY_NONE = 0 | |
const MQ_RECEIVE_ACCESS = 1 | |
const MQ_NO_TRANSACTION = 0 | |
const MQ_MTS_TRANSACTION = 1 | |
const MQ_SINGLE_MESSAGE = 3 | |
Dim objArgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import os | |
regex = 'public void set.*IsSet|public boolean isSet.*|public int get.*Size|public java.util.Iterator' | |
for filename in os.listdir("."): | |
if filename.endswith(".java"): | |
os.rename(filename, filename + ".bak") | |
f = open(filename + ".bak", 'r') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static String encrypt(String key, String data) throws Exception { | |
SecretKeySpec keySpec = new SecretKeySpec(key.getBytes(), "AES"); | |
Cipher cipher = Cipher.getInstance("AES"); | |
cipher.init(Cipher.ENCRYPT_MODE, keySpec); | |
byte[] res = cipher.doFinal(data.getBytes()); | |
return Hex.encodeHexString(res); | |
} | |
private static String decrypt(String key, String d) throws Exception { | |
SecretKeySpec keySpec = new SecretKeySpec(key.getBytes(), "AES"); |
NewerOlder