==> Retrieving sources... -> Updating nbtool git repo... ==> Generating checksums for source files... ==> Making package: nbtool 1:2.bf90c76-1 (Thu 21 Nov 2024 11:56:41 AM UTC) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (1) New Version Net Change extra/nasm 2.16.03-1 2.45 MiB Total Installed Size: 2.45 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing nasm... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... ==> Retrieving sources... -> Updating nbtool git repo... ==> Validating source files with sha512sums... nbtool ... Skipped ==> Extracting sources... -> Creating working copy of nbtool git repo... Switched to a new branch 'makepkg' ==> Starting pkgver()... ==> Starting build()... gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o nbquery.o nbquery.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o dns.o dns.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o buffer.o buffer.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o udp.o udp.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o tcp.o tcp.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o select_group.o select_group.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from select_group.c:10: /usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o types.o types.c In file included from /usr/include/ctype.h:25, from types.c:10: /usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o memory.o memory.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o netbios_types.o netbios_types.c types.c: In function ‘drop_privileges’: types.c:50:25: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 50 | setuid(user->pw_uid); | ^~~~~~~~~~~~~~~~~~~~ gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o nbsniff.o nbsniff.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o dnsxss.o dnsxss.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o dnslogger.o dnslogger.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o dnscat.o dnscat.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o session.o session.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -c -o dnstest.o dnstest.c Trying to build samples (shellcode, etc) -- don't worry if it fails cd samples && make session.c: In function ‘session_write’: session.c:681:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 681 | write(session->exec_stdin[PIPE_WRITE], write_data, write_length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples' cd shellcode-linux && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-linux' Assembling dnscat-shell-linux.asm... 956 dnscat-shell-linux Creating dnscat-shell-test.h with shellcode... gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o nbquery nbquery.o dns.o buffer.o udp.o tcp.o select_group.o types.o memory.o netbios_types.o gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o nbsniff nbsniff.o dns.o buffer.o udp.o tcp.o select_group.o types.o memory.o netbios_types.o Compiling the test program... gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o ./dnscat-shell-test -I. ../shellcode-test/dnscat-shell-test.c gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o dnsxss dnsxss.o buffer.o tcp.o udp.o select_group.o types.o memory.o dns.o make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-linux' cd shellcode-win32 && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-win32' Creating 'test' shellcode Creating 'msf' shellcode Assembling 'test' shellcode Assembling 'msf' shellcode 1017 dnscat-shell-win32-msf Converting 'test' shellcode into a .h file Converting 'msf' shellcode into a .rb file Compiling the test program... gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o ./dnscat-shell-win32-test.out -I. -DDNSCATFILE=dnscat-shell-win32-test.h ../shellcode-test/dnscat-shell-test.c make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-win32' cd shellcode-stager-win32 && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-stager-win32' Generating 'test' stager shellcode Generating 'msf' stager shellcode Assembling 'test' stager Assembling 'msf' stager 232 dnscat-stager-win32-msf Converting 'test' stager into a .h file Converting 'msf' stager into a .rb file Compiling the test stager program... gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o ./dnscat-stager-test -I. ../shellcode-test/dnscat-shell-test.c make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-stager-win32' cd jsdnscat && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/jsdnscat' /bin/sh: line 1: ruby: command not found make[2]: *** [Makefile:2: js/skullsecurity.all.min.js] Error 127 make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/jsdnscat' make[1]: [Makefile:12: all] Error 2 (ignored) make[1]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples' gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o dnslogger dnslogger.o buffer.o tcp.o udp.o select_group.o types.o memory.o dns.o gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o dnscat dnscat.o buffer.o tcp.o udp.o select_group.o types.o memory.o dns.o session.o gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/src/packages/pentesting/nbtool/src=/usr/src/debug/nbtool -flto=auto -o dnstest dnstest.o buffer.o tcp.o udp.o select_group.o types.o memory.o dns.o Compile should be complete ==> Entering fakeroot environment... ==> Starting package()... Trying to build samples (shellcode, etc) -- don't worry if it fails cd samples && make make[1]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples' cd shellcode-linux && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-linux' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-linux' cd shellcode-win32 && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-win32' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-win32' cd shellcode-stager-win32 && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-stager-win32' Compiling the test stager program... gcc -Wall -g -o ./dnscat-stager-test -I. ../shellcode-test/dnscat-shell-test.c make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/shellcode-stager-win32' cd jsdnscat && make make[2]: Entering directory '/src/packages/pentesting/nbtool/src/nbtool/samples/jsdnscat' make[2]: 'js/skullsecurity.all.min.js' is up to date. make[2]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples/jsdnscat' make[1]: Leaving directory '/src/packages/pentesting/nbtool/src/nbtool/samples' Compile should be complete mkdir -p /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin cp nbquery /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/nbquery cp nbsniff /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/nbsniff cp dnsxss /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnsxss cp dnslogger /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnslogger cp dnscat /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnscat cp dnstest /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnstest chown root.root /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/nbquery chown: warning: '.' should be ':': ‘root.root’ chown root.root /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/nbsniff chown: warning: '.' should be ':': ‘root.root’ chown root.root /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnsxss chown: warning: '.' should be ':': ‘root.root’ chown root.root /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnslogger chown: warning: '.' should be ':': ‘root.root’ chown root.root /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnscat chown: warning: '.' should be ':': ‘root.root’ chown root.root /src/packages/pentesting/nbtool/pkg/nbtool/usr/bin/dnstest chown: warning: '.' should be ':': ‘root.root’ ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "nbtool"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Creating package "nbtool-debug"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: nbtool 1:2.bf90c76-1 (Thu 21 Nov 2024 11:56:48 AM UTC) ==> Cleaning up... ==> Removing installed dependencies... checking dependencies... Package (1) Old Version Net Change nasm 2.16.03-1 -2.45 MiB Total Removed Size: 2.45 MiB :: Do you want to remove these packages? [Y/n] :: Processing package changes... removing nasm... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate...