rch Chatsiri

View gist:9801543
1 2 3 4 5 6 7 8 9 10
#include<stdint.h>
#include<cstring>
 
#include <memory>
#include <limits>
#include <type_traits>
 
#include <iostream>
 
extern const char formatHexUpper[256][2];
View gist:9801510
1 2 3 4 5 6 7 8 9 10
#include<stdint.h>
#include<cstring>
 
#include <memory>
#include <limits>
#include <type_traits>
 
#include <iostream>
 
extern const char formatHexUpper[256][2];
View gist:9569802
1 2 3 4 5 6 7 8 9 10
/* Titles Authors Date
* --Multi file array with multi signature file R.Chatsiri
*/
 
/* Create Buffer */
__kernel void actire_search(
__global uchar *node_symbol,
__global uint *node_state,
__global uchar *infected_str,
__global uchar *symbol_wb)
View gist:8664575
1 2 3 4 5 6 7 8 9
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <pthread.h>
#include <unistd.h>
 
#define EMPTY_DATA 0
#define CONTAIN_DATA 1
View gist:7927862
1 2 3 4 5 6 7 8 9 10
int ac_match_char_gpu(
uint16_t p,
const unsigned char *b,
uint32_t match
)
{
 
switch((p & CLI_MATCH_WILDCARD) ) {
case CLI_MATCH_CHAR:
if((unsigned char) p != b) {
View gist:7602513
1 2 3 4 5 6 7 8 9 10
 
struct cli_ac_special {
unsigned char *str;
struct cli_ac_special *next;
uint16_t len, num;
uint8_t type, negative;
};
 
struct cli_ac_patt {
View gist:7577225
1 2 3 4 5 6 7 8 9
int assign_arr(uint16_t * array_di)
{
array_di = (uint16_t**)malloc( MAX_ARRAY_SIZE_1 * sizeof(uint16_t*));
int count_a_id;
for(count_a_id = 0; count_a_id < MAX_ARRAY_SIZE_1; count_a_id++)
{
array_di[count_a_id] = (uint16_t*)malloc(MAX_ARRAY_SIZE_2 * sizeof(uint16_t));
 
}
View gist:7486656
1 2 3 4 5 6 7 8 9
#include
#include
 
typedef struct ocl_ac_special {
int str[1024];
//struct ocl_ac_special * next[1024];
uint16_t len, num;
uint8_t type, negative;
}ocl_ac_special;
View gist:7486469
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <stdint.h>
 
typedef struct ocl_ac_special {
int str[1024];
//struct ocl_ac_special * next[1024];
uint16_t len, num;
uint8_t type, negative;
}ocl_ac_special;
View gist:7460664
1 2 3 4 5 6 7 8 9 10
struct ocl_ac_patt {
uint16_t pattern[1024]; /* ok */
uint16_t prefix[1024]; /* ok */
uint16_t length, prefix_length; /* ok */
uint32_t mindist, maxdist; /* ok */
uint32_t sigid; /* ok */
uint32_t lsigid[3];
uint16_t ch[2]; /* ok */
char virname[1024]; /* ok */
//void customdata; //have pointer
Something went wrong with that request. Please try again.