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
VyMessage* readSSLMessage(VySSL* ssl) | |
{ | |
char* message = malloc(sizeof(char)); | |
char* buffer = malloc(sizeof(char)*1024); | |
int readSize; | |
int i; | |
while((readSize = SSL_read(ssl->ssl, buffer, sizeof(buffer))) >= 1) | |
{ | |
char* tempMessage = message; |
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
SSL Listening Thread Launched | |
Window thread launched. | |
Pressed login. | |
:CyDrive | |
:Welcome | |
+ Unique ID: d812471e-1973-427f-8a24-c8a46e29dfef� - + Sending SSL message: [Login] + [CyDrive~Welcome] | |
- Received SSL message: [Login] - [Accepted] | |
Client is Accepted | |
+ Unique ID: d812471e-1973-427f-8a24-c8a46e29dfef - + Sending TCP message: [Query] + [id] | |
- Received TCP message: [ServerID] - [37adb483-8147-4b0d-86b1-d14e5d4f8275] |
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
VyMessage* parseNewMessage(unsigned char* data) | |
{ | |
VyMessage* message = malloc(sizeof(VyMessage)); | |
int offset = 2; | |
char* uuid = malloc((sizeof(char)*UUID_SIZE)); | |
int i; | |
for(i = 0;i < UUID_SIZE;i++) | |
*(uuid+i) = *(data+i+offset); | |
message->senderID = uuid; |
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.IOException; | |
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.Map; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class BF { | |
private interface Visitor | |
{ |
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.IOException; | |
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.Map; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class BF { | |
private interface Visitor | |
{ |
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
public class Controller | |
{ | |
public class ControllerAction | |
{ | |
public delegate void KeyPressedDelegateFunction(); | |
private String name; | |
private Key key; | |
private KeyPressedDelegateFunction keyPressedFunction; | |
public ControllerAction(Key key, String name, KeyPressedDelegateFunction function) |
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
//Check to see if the strings contain the same number of characters | |
//For time purposes we assume that the strings only contain capital letters | |
bool hasSameCharacters(String string1, String string2) | |
{ | |
//Get the size of the strings once | |
int string1Size = string1.size(); | |
int string2Size = string2.size(); | |
//If the sizes are not equal than they | |
//do not contain the same characters |
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.util.*; | |
public class SocialSecurities | |
{ | |
public static void main (String args []) | |
{ | |
String ssnum; | |
Scanner sc = new Scanner(System.in); | |
while(true) | |
{ | |
System.out.print("Please enter your Social Security number, type quit or stop to exit"); |
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
class ESolver | |
{ | |
public delegate double operationFunction(double[] input); | |
private List<Operation> operationDeclerations; | |
private List<Variable> variables; | |
/// <summary> | |
/// Default constructor | |
/// </summary> |
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 <windows.h> | |
#include <stdio.h> | |
#include "Detour\CDetour.h" | |
DWORD dwClientNode_SendChatAddress = 0x0082D560; | |
DWORD dwClientNode_ShowChatAddress = dwClientNode_SendChatAddress + 0x110; | |
PDWORD pClientNodeInstance; | |
CDetour ClientNode_SendChatDet; |
OlderNewer