kalasag.org

kalasag.org

Git

This blob has been accessed 2 times via Git panel.

  1. #define VERSION "1.0"
  2.  
  3. #include <stdio.h>
  4. #include <syslog.h>
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. #include <signal.h>
  8. #include <time.h>
  9. #include <netdb.h>
  10. #include <string.h>
  11. #include <ctype.h>
  12. #include <errno.h>
  13. #include <stdarg.h>
  14. #include <assert.h>
  15. #include <sys/param.h>
  16. #include <sys/types.h>
  17. #include <sys/socket.h>
  18. #include <sys/stat.h>
  19. #include <netinet/in.h>
  20. #include <arpa/inet.h>
  21.  
  22. #include "kalasag_config.h"
  23. #include "kalasag_io.h"
  24. #include "kalasag_util.h"
  25.  
  26. #ifdef SUPPORT_STEALTH
  27. #ifdef LINUX
  28. #include "kalasag_tcpip.h"
  29. #include <netinet/in_systm.h>
  30. #endif
  31.  
  32. #define TCPPACKETLEN 80
  33. #define UDPPACKETLEN 68
  34. #endif                          /* SUPPORT_STEALTH */
  35.  
  36. #define ERROR -1
  37. #define TRUE 1
  38. #define FALSE 0
  39. #define MAXBUF 1024
  40. /* max size of an IP address plus NULL */
  41. #define IPMAXBUF 16
  42. /* max sockets we can open */
  43. #define MAXSOCKS 64
  44.  
  45. /* Really is about 1025, but we don't need the length for our purposes */
  46. #define DNSMAXBUF 255
  47.  
  48.  
  49. /* prototypes */
  50. int KalasagModeTCP(void);
  51. int KalasagModeUDP(void);
  52. int DisposeUDP(char *, int);
  53. int DisposeTCP(char *, int);
  54. int CheckStateEngine(char *);
  55. int InitConfig(void);
  56. void Usage(void);
  57. int SmartVerifyTCP(struct sockaddr_in, struct sockaddr_in, int);
  58. int SmartVerifyUDP(struct sockaddr_in, struct sockaddr_in, int);
  59.  
  60. #ifdef SUPPORT_STEALTH
  61. int KalasagStealthModeTCP(void);
  62. int KalasagAdvancedStealthModeTCP(void);
  63. int KalasagStealthModeUDP(void);
  64. int KalasagAdvancedStealthModeUDP(void);
  65. char *ReportPacketType(struct tcphdr);
  66. int PacketReadTCP(int, struct iphdr *, struct tcphdr *);
  67. int PacketReadUDP(int, struct iphdr *, struct udphdr *);
  68. #endif
  69.  
filedropkalasag.git-8eed43a.tar.bz2 new
21.31 KB
2 downloads
filedropkalasag.git-8eed43a.zip
26.47 KB
1 download
filedropkalasag.git-83beb57.tar.bz2
21.32 KB
3 downloads
filedropkalasag.git-83beb57.zip
26.49 KB
1 download
filedropkalasag.git-89d9746.tar.bz2
21.25 KB
3 downloads
filedropkalasag.git-89d9746.zip
26.41 KB
2 downloads
filedropkalasag.git-a1e8b2b.tar.bz2
21.14 KB
2 downloads
filedropkalasag.git-a1e8b2b.zip
26.30 KB
2 downloads
filedropkalasag.git-8c3a288.tar.bz2
21.20 KB
3 downloads
filedropkalasag.git-8c3a288.zip
26.46 KB
2 downloads
filedropkalasag.git-1c9f013.tar.bz2
20.95 KB
131 downloads
filedropkalasag.git-1c9f013.zip
25.81 KB
76 downloads
filedropkalasag.git-3ca3612.tar.bz2
20.80 KB
34 downloads
filedropkalasag.git-3ca3612.zip
25.66 KB
19 downloads
filedropkalasag.git-2ffeaa6.tar.bz2
20.80 KB
36 downloads
filedropkalasag.git-2ffeaa6.zip
25.65 KB
90 downloads
filedropkalasag.git-2834a11.tar.bz2
20.84 KB
139 downloads
filedropkalasag.git-2834a11.zip
25.72 KB
18 downloads
filedropkalasag.git-afd7b31.tar.bz2
20.84 KB
119 downloads
filedropkalasag.git-afd7b31.zip
25.71 KB
98 downloads
filedropkalasag.git-97c89e1.tar.bz2
20.82 KB
116 downloads
filedropkalasag.git-97c89e1.zip
25.68 KB
96 downloads
filedropkalasag.git-1141d13.tar.bz2
20.65 KB
122 downloads
filedropkalasag.git-1141d13.zip
25.37 KB
82 downloads
filedropkalasag.git-ee3c17b.tar.bz2
20.65 KB
113 downloads
filedropkalasag.git-ee3c17b.zip
25.34 KB
24 downloads
filedropkalasag.git-4032c54.tar.bz2
20.63 KB
32 downloads
filedropkalasag.git-4032c54.zip
25.13 KB
87 downloads
filedropkalasag.git-e51a2a6.tar.bz2
20.65 KB
108 downloads
filedropkalasag.git-e51a2a6.zip
25.13 KB
19 downloads
filedropkalasag.git-599c93a.tar.bz2
20.63 KB
104 downloads
filedropkalasag.git-599c93a.zip
25.11 KB
1,612 downloads
filedropkalasag.git-acdc640.tar.bz2
20.63 KB
105 downloads
filedropkalasag.git-acdc640.zip
25.10 KB
14 downloads