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
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>CM_Storm</vendorname> | |
<vendorid>0x2516</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>QuickFire_TK</productname> | |
<productid>0x0011</productid> | |
</deviceproductdef> |
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
package com.kevinxw.net.packet; | |
import org.apache.commons.lang3.tuple.ImmutablePair; | |
import org.apache.commons.lang3.tuple.Pair; | |
import org.opendaylight.controller.sal.packet.BitBufferHelper; | |
import org.opendaylight.controller.sal.packet.BufferException; | |
import org.opendaylight.controller.sal.packet.Packet; | |
import org.opendaylight.controller.sal.packet.PacketException; | |
import org.opendaylight.controller.sal.utils.HexEncode; | |
import org.opendaylight.controller.sal.utils.NetUtils; |
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
/*- | |
* Copyright (c) 1982, 1986, 1991, 1993 | |
* The Regents of the University of California. All rights reserved. | |
* (c) UNIX System Laboratories, Inc. | |
* All or some portions of this file are derived from material licensed | |
* to the University of California by American Telephone and Telegraph | |
* Co. or Unix System Laboratories, Inc. and are reproduced herein with | |
* the permission of UNIX System Laboratories, Inc. | |
* | |
* Redistribution and use in source and binary forms, with or without |
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
@Echo Off | |
For /F "tokens=2 delims=:" %%j in ('Find /C /V "" random.txt') Do ( | |
Set MOD=%%j | |
) | |
Set MOD=%MOD:~1% | |
echo Launched program list > launched_list.txt | |
:LOOP |
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
#!/bin/bash | |
cp /usr/lib/ssl/openssl.cnf . | |
chmod 755 ./openssl.cnf | |
dir="./demoCA" | |
certs=$dir/certs # Where the issued certs are kept | |
crl_dir=$dir/crl # Where the issued crl are kept | |
new_certs_dir=$dir/newcerts # default place for new certs. | |
database=$dir/index.txt # database index file. |
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
/* | |
* MiniVPN.c - a simple VPN implemention with PKI | |
* | |
* Copyright (C) 2013 Kevin Wang <[email protected]> | |
* | |
* Based on codes created by: | |
* Copyright (C) 2003 Philippe Biondi <[email protected]> | |
* | |
* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU Lesser General Public License as published by |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <openssl/evp.h> | |
void getHash(char * hashname, char *msg, unsigned char *md_value) { | |
EVP_MD_CTX *mdctx; | |
const EVP_MD *md; | |
//unsigned char md_value[EVP_MAX_MD_SIZE]; | |
int md_len, i; |
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
/* | |
For AES encryption/decryption lab. -> CIS 644 / Sp13 -> Kevin Wang | |
*/ | |
#include <string.h> |
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
#ifndef XMLENCODER_H | |
#define XMLENCODER_H | |
#include <string> | |
// the translator class of XmlReader / XmlWriter | |
class XmlEncoder { | |
// escape markup | |
static std::string encodeAttr(std::string str) { |
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
#!/bin/sh | |
# script created for CIS644 Lab 4, Kevin - Mar 18, 2013 | |
# the payload_answer2 is a special raw data file that carefully constructured | |
# to use this file, you should insert two byte as Transaction ID at position 0 of the file | |
# then read 11 bytes, insert your random domain name at position 13(2+11) | |
# then append the fake DNS server IP address in the end of the file | |
./pacgen2 |