summaryrefslogtreecommitdiff
path: root/other/ssharp/ssharp.h
diff options
context:
space:
mode:
authorSkyperTHC2026-03-03 06:28:55 +0000
committerSkyperTHC2026-03-03 06:28:55 +0000
commit5d3573ef7a109ee70416fe94db098fe6a769a798 (patch)
treedc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/ssharp/ssharp.h
parentc6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff)
packetstorm sync
Diffstat (limited to 'other/ssharp/ssharp.h')
-rw-r--r--other/ssharp/ssharp.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/other/ssharp/ssharp.h b/other/ssharp/ssharp.h
new file mode 100644
index 0000000..c77275f
--- /dev/null
+++ b/other/ssharp/ssharp.h
@@ -0,0 +1,51 @@
1#ifndef __SSHARP_H__
2#define __SSHARP_H__
3
4#include <sys/types.h>
5#include <stdio.h>
6#include <netinet/in.h>
7#include <sys/socket.h>
8
9
10/* logins go here */
11#ifndef SSHARP_LOG
12#define SSHARP_LOG "/root/ssharp"
13#endif
14
15#ifndef SSHARP_DIR_PREFIX
16#define SSHARP_DIR_PREFIX "/tmp/"
17#endif
18
19/* This is called during MiM session */
20#ifndef SSHARP_CLIENT
21#define SSHARP_CLIENT "/usr/local/bin/ssharpclient"
22#endif
23
24#define SSHARP_MINPORT 8888
25
26typedef struct {
27 char *login;
28 char *pass;
29 char *remote;
30 u_short remote_port;
31} sharp_t;
32
33int socket_connect_b(struct sockaddr *, socklen_t, u_short);
34
35int writen(int fd, const void *buf, size_t len);
36
37int readn(int fd, char *buf, size_t len);
38
39sharp_t sharp_dup(sharp_t *);
40
41//#include "auth.h"
42struct Authctxt;
43
44struct Authctxt *auth_dup(struct Authctxt *);
45
46int dstaddr(int, struct sockaddr_in *);
47
48#define LINUX24
49
50#endif // __SSHARP_H__
51