6596cdb087
Stegtunnel provides a covert channel in the IPID and sequence number fields of any desired TCP connection. It requires the server and client to have a previously shared secret in common to detect and decrypt the data.
21 lines
640 B
Text
21 lines
640 B
Text
$NetBSD: patch-af,v 1.1.1.1 2008/05/09 21:39:17 agc Exp $
|
|
|
|
--- crypto.c 2007/10/03 18:50:14 1.1
|
|
+++ crypto.c 2007/10/03 18:51:13
|
|
@@ -76,7 +76,7 @@
|
|
passlen = strlen(passphrase);
|
|
|
|
SHA1Reset(&sha1_ctx);
|
|
- SHA1Input(&sha1_ctx, passphrase, passlen);
|
|
+ SHA1Input(&sha1_ctx, (unsigned char *)passphrase, passlen);
|
|
SHA1Result(&sha1_ctx, st_ctx->pw_hash);
|
|
for(c = 0; c < passlen; c++) {
|
|
passphrase[c] = 0;
|
|
@@ -156,7 +156,6 @@
|
|
struct ip_hdr *ip_header;
|
|
struct tcp_hdr *tcp_header;
|
|
uint8_t *tmp_pkt;
|
|
- int i;
|
|
|
|
ip_header = (struct ip_hdr *)packet;
|
|
tcp_header = (struct tcp_hdr *) (packet + (ip_header->ip_hl * 4));
|