Codebase list dnscat2 / 3a46370
Initial release (see 6668) Sophie Brun 3 years ago
14 changed file(s) with 289 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 dnscat2 (0.07-0kali1) kali-dev; urgency=medium
1
2 * Initial release (see 6668)
3
4 -- Sophie Brun <[email protected]> Tue, 25 Aug 2020 11:27:16 +0200
0 Source: dnscat2
1 Section: net
2 Priority: optional
3 Maintainer: Kali Developers <[email protected]>
4 Uploaders: Sophie Brun <[email protected]>
5 Build-Depends: debhelper-compat (= 13)
6 Standards-Version: 4.5.0
7 Homepage: https://github.com/iagox86/dnscat2
8 Vcs-Browser: https://gitlab.com/kalilinux/packages/dnscat2
9 Vcs-Git: https://gitlab.com/kalilinux/packages/dnscat2.git
10 Rules-Requires-Root: no
11
12 Package: dnscat2
13 Architecture: all
14 Section: metapackages
15 Depends: ${misc:Depends}, dnscat2-client, dnscat2-server
16 Description: DNS tunnel (metapackage)
17 This tool is designed to create an encrypted command-and-control (C&C) channel
18 over the DNS protocol, which is an effective tunnel out of almost every
19 network.
20
21 Package: dnscat2-client
22 Architecture: any
23 Depends: ${misc:Depends}, ${shlibs:Depends}
24 Suggests: dnscat2-server
25 Description: DNS tunnel, the client part
26 This tool is designed to create an encrypted command-and-control (C&C) channel
27 over the DNS protocol, which is an effective tunnel out of almost every
28 network.
29 .
30 The client is designed to be run on a compromised machine.
31
32 Package: dnscat2-server
33 Architecture: all
34 Depends: ${misc:Depends},
35 ruby | ruby-interpreter,
36 ruby-trollop,
37 ruby-salsa20,
38 ruby-ecdsa,
39 ruby-sha3
40 Suggests: dnscat2-client
41 Description: DNS tunnel, the server part
42 This tool is designed to create an encrypted command-and-control (C&C) channel
43 over the DNS protocol, which is an effective tunnel out of almost every
44 network.
45 .
46 The server is designed to be run on an authoritative DNS server.
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: dnscat2
2 Source: https://github.com/iagox86/dnscat2
3
4 Files: *
5 Copyright: 2013-2015, Ron Bowes All rights reserved
6 License: BSD-3-clause
7
8 Files: client/libs/my_getopt.*
9 Copyright: 1997, 2000-2002, 2006 Benjamin Sittler
10 License: Expat
11 Permission is hereby granted, free of charge, to any person
12 obtaining a copy of this software and associated documentation
13 files (the "Software"), to deal in the Software without
14 restriction, including without limitation the rights to use, copy,
15 modify, merge, publish, distribute, sublicense, and/or sell copies
16 of the Software, and to permit persons to whom the Software is
17 furnished to do so, subject to the following conditions:
18 .
19 The above copyright notice and this permission notice shall be
20 included in all copies or substantial portions of the Software.
21 .
22 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 DEALINGS IN THE SOFTWARE.
30
31 Files: client/libs/pstdint.h
32 Copyright: 2005-2007 Paul Hsieh
33 License: BSD-3-clause
34
35 Files: client/libs/crypto/salsa20.c
36 Copyright: None
37 License: Public-Domain
38 License; from https://github.com/alexwebr/salsa20/blob/master/LICENSE.txt
39 The person or persons who have associated work with this document (the
40 "Dedicator" or "Certifier") hereby either (a) certifies that, to the best of
41 his knowledge, the work of authorship identified is in the public domain of
42 the country from which the work is published, or (b) hereby dedicates
43 whatever copyright the dedicators holds in the work of authorship identified
44 below (the "Work") to the public domain. A certifier, moreover, dedicates
45 any copyright interest he may have in the associated work, and for these
46 purposes, is described as a "dedicator" below.
47 .
48 A certifier has taken reasonable steps to verify the copyright status of
49 this work. Certifier recognizes that his good faith efforts may not shield
50 him from liability if in fact the work certified is not in the public
51 domain.
52 .
53 Dedicator makes this dedication for the benefit of the public at large and
54 to the detriment of the Dedicator's heirs and successors. Dedicator intends
55 this dedication to be an overt act of relinquishment in perpetuity of all
56 present and future rights under copyright law, whether vested or contingent,
57 in the Work. Dedicator understands that such relinquishment of all rights
58 includes the relinquishment of all rights to enforce (by lawsuit or
59 otherwise) those copyrights in the Work.
60 .
61 Dedicator recognizes that, once placed in the public domain, the Work may be
62 freely reproduced, distributed, transmitted, used, modified, built upon, or
63 otherwise exploited by anyone for any purpose, commercial or non-commercial,
64 and in any way, including by methods that have not yet been invented or
65 conceived.
66
67 Files: client/libs/crypto/sha3.c
68 Copyright: 2013 Aleksey Kravchenko <[email protected]>
69 License: Other
70 Permission is hereby granted, free of charge, to any person obtaining a
71 copy of this software and associated documentation files (the "Software"),
72 to deal in the Software without restriction, including without limitation
73 the rights to use, copy, modify, merge, publish, distribute, sublicense,
74 and/or sell copies of the Software, and to permit persons to whom the
75 Software is furnished to do so.
76 .
77 This program is distributed in the hope that it will be useful, but
78 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
79 or FITNESS FOR A PARTICULAR PURPOSE. Use this program at your own risk!
80
81 Files: client/libs/crypto/micro-ecc/*
82 Copyright: 2014-2015, Kenneth MacKay
83 License: BSD-2-clause
84 All rights reserved.
85 .
86 Redistribution and use in source and binary forms, with or without
87 modification, are permitted provided that the following conditions are
88 met:
89 * Redistributions of source code must retain the above copyright notice,
90 this list of conditions and the following disclaimer.
91 * Redistributions in binary form must reproduce the above copyright notice,
92 this list of conditions and the following disclaimer in the documentation
93 and/or other materials provided with the distribution.
94 .
95 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
96 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
97 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
98 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
99 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
100 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
101 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
102 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
103 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
104 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
105 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
106
107 Files: debian/*
108 Copyright: 2020 Sophie Brun <[email protected]>
109 License: BSD-3-clause
110
111 License: BSD-3-clause
112 Redistribution and use in source and binary forms, with or without
113 modification, are permitted provided that the following conditions are
114 met:
115 .
116 * Redistributions of source code must retain the above copyright notice,
117 this list of conditions and the following disclaimer.
118 * Redistributions in binary form must reproduce the above copyright
119 notice, this list of conditions and the following disclaimer in the
120 documentation and/or other materials provided with the distribution.
121 * Neither the name of the organization nor the names of its contributors
122 may be used to endorse or promote products derived from this software
123 without specific prior written permission.
124 .
125 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
126 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
127 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
128 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
129 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
130 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
131 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
132 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
133 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
134 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
135 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0 client/dnscat usr/bin
0 server/*.rb usr/share/dnscat2
1 server/controller usr/share/dnscat2
2 server/drivers usr/share/dnscat2
3 server/libs usr/share/dnscat2
4 server/tunnel_drivers usr/share/dnscat2
5 debian/helper-script/* usr/bin
0 #!/bin/sh
1
2 set -e
3
4 sudo ruby /usr/share/dnscat2/dnscat2.rb "$@"
0 From: Sophie Brun <[email protected]>
1 Date: Tue, 25 Aug 2020 18:42:25 +0200
2 Subject: Add missing flags
3
4 ---
5 client/Makefile | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/client/Makefile b/client/Makefile
9 index 20913ef..2d56e6d 100644
10 --- a/client/Makefile
11 +++ b/client/Makefile
12 @@ -66,7 +66,7 @@ clean:
13 -rm -rf win32/*.vcproj.*
14
15 dnscat: ${DNSCAT_DNS_OBJS}
16 - ${CC} ${CFLAGS} -o dnscat ${DNSCAT_DNS_OBJS}
17 + ${CC} ${CFLAGS} ${LDFLAGS} -o dnscat ${DNSCAT_DNS_OBJS}
18 @echo "*** dnscat successfully compiled"
19
20 COMMANDS=drivers/command/commands_standard.h \
0 From: Sophie Brun <[email protected]>
1 Date: Tue, 25 Aug 2020 18:05:35 +0200
2 Subject: Fix spelling error
3
4 ---
5 client/controller/session.c | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/client/controller/session.c b/client/controller/session.c
9 index a10b891..749a259 100644
10 --- a/client/controller/session.c
11 +++ b/client/controller/session.c
12 @@ -332,7 +332,7 @@ static NBBOOL _handle_enc_before_auth(session_t *session, packet_t *packet)
13 /* Check their authenticator. */
14 if(memcmp(packet->body.enc.authenticator, session->encryptor->their_authenticator, 32))
15 {
16 - LOG_FATAL("Their authenticator was wrong! That likely means something weird is happening on the newtork...");
17 + LOG_FATAL("Their authenticator was wrong! That likely means something weird is happening on the network...");
18 exit(1);
19 }
20
0 From: Sophie Brun <[email protected]>
1 Date: Tue, 25 Aug 2020 15:31:23 +0200
2 Subject: Keep the upstream CFLAGS
3
4 Last-Update: 2020-08-25
5
6
7 We need to have at least the FLAGS --std=c89 -I. for the build.
8 ---
9 client/Makefile | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/client/Makefile b/client/Makefile
13 index 297bc92..20913ef 100644
14 --- a/client/Makefile
15 +++ b/client/Makefile
16 @@ -9,7 +9,7 @@
17 CC?=gcc
18 DEBUG_CFLAGS?=-DTESTMEMORY -Werror -O0
19 RELEASE_CFLAGS?=-Os
20 -CFLAGS?=--std=c89 -I. -Wall -D_DEFAULT_SOURCE -fstack-protector-all -Wformat -Wformat-security -g
21 +CFLAGS+=--std=c89 -I. -Wall -D_DEFAULT_SOURCE -fstack-protector-all -Wformat -Wformat-security -g
22 LIBS=-pie -Wl,-z,relro,-z,now
23
24 OBJS=controller/packet.o \
0 keep-upstream-CFLAGS.patch
1 Fix-spelling-error.patch
2 Add-missing-flags.patch
0 #!/usr/bin/make -f
1 # output every command that modifies files on the build system.
2 #export DH_VERBOSE = 1
3
4 # see FEATURE AREAS in dpkg-buildflags(1)
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 %:
8 dh $@
9
10 override_dh_fixperms-indep:
11 dh_fixperms
12 chmod 644 debian/dnscat2-server/usr/share/dnscat2/dnscat2.rb
0 3.0 (quilt)
0 version=4
1 opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%dnscat2-$1.tar.gz%" \
2 https://github.com/iagox86/dnscat2/tags \
3 (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate