[go: up one dir, main page]

File: nb.h

package info (click to toggle)
fakebo 0.4.1-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 512 kB
  • ctags: 413
  • sloc: ansic: 4,013; sh: 398; makefile: 65
file content (48 lines) | stat: -rw-r--r-- 1,582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48


#ifndef NB_H
#define NB_H

/* NetBus support */
#define NETBUSMAXCLIENTS			50	/* Maximum NetBus Connections */
#define NETBUSMAXCOM				24	/* Maximum of known NetBus Commands */
#define BUFLEN					1024	/* Length of buffer */

#define NETBUSANSWER				"Msg;"	/* Command for writing servers messages to client */

/* NetBus Support */
static char netbuscommands[NETBUSMAXCOM][2][40] =
{
	{"GetInfo;", "Info requested"},
	{"Listen;0", "Listen for Keystrokes: OFF Requested"},
	{"Listen;1", "Listen for Keystrokes: ON Requested"},
	{"Eject;0", "Close the CD ROM Requested"},
	{"Eject;1", "Open the CD ROM Requested"},
	{"SendKeys;0", "Send Text Requested"},
	{"SwapButton;0", "Restore Mouse Buttons Requested"},
	{"SwapButton;1", "Swap the Mouse Buttons Requested"},
	{"Message;", "Display Message Request"},
	{"ServerPwd;", "Password Change Request"},
	{"RemoveServer;05", "Close Server"},
	{"RemoveServer;15", "Remove Server"},
	{"Password;0", "Password Access"},
	{"Password;1", "Password Security Hole Access"},
	{"PlaySound;", "Play sound file"},
	{"SetMousePos;", "Set Mouse Position"},
	{"StartApp;", "Start Application"},
	{"KeyClick;", "Key Click"},
	{"DisableKeys;", "Disable Keys"},
	{"GetApps;", "List Active Applications"},
	{"FocusApp;", "Focus Application"},
	{"KillApp;", "Kill Application"},
	{"ShowImage;", "Show Image"},
	{"URL;", "Go to URL"}
};

static char unknownnetbuscommand[40] = "Unknown NetBus Command (Garbage?)";
static int netbusclients = 0;
static int netbuskfd[NETBUSMAXCLIENTS];
static struct sockaddr_in netbusaddr;
static int netbuslfd = -1;

#endif