Diff of the two buildlogs: -- --- b1/build.log 2024-04-10 18:13:00.254196237 +0000 +++ b2/build.log 2024-04-10 18:13:47.856169264 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue May 13 12:35:27 -12 2025 -I: pbuilder-time-stamp: 1747182927 +I: Current time: Thu Apr 11 08:13:03 +14 2024 +I: pbuilder-time-stamp: 1712772783 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -35,54 +35,86 @@ dpkg-source: info: applying missing-prototypes.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/125318/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/D01_modify_environment starting +debug: Running on ionos12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 10 18:13 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='95389746c53c42099217fa177d264dec' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='125318' - PS1='# ' - PS2='> ' + INVOCATION_ID=ddb01fe4594a484282278d94afa8a0c0 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=10201 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.U1d0gvQe/pbuilderrc_JuUj --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.U1d0gvQe/b1 --logfile b1/build.log hunt_1.5-9.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.U1d0gvQe/pbuilderrc_NnX5 --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.U1d0gvQe/b2 --logfile b2/build.log hunt_1.5-9.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux ionos16-i386 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 13 14:07 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/125318/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Apr 9 07:43 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -148,7 +180,7 @@ Get: 28 http://deb.debian.org/debian unstable/main i386 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 29 http://deb.debian.org/debian unstable/main i386 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian unstable/main i386 debhelper all 13.15.3 [901 kB] -Fetched 19.3 MB in 1s (26.3 MB/s) +Fetched 19.3 MB in 0s (44.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19681 files and directories currently installed.) @@ -283,7 +315,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/hunt-1.5/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../hunt_1.5-9_source.changes +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/hunt-1.5/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../hunt_1.5-9_source.changes dpkg-buildpackage: info: source package hunt dpkg-buildpackage: info: source version 1.5-9 dpkg-buildpackage: info: source distribution unstable @@ -293,7 +329,7 @@ debian/rules clean dh clean dh_auto_clean - make -j22 distclean + make -j10 distclean make[1]: Entering directory '/build/reproducible-path/hunt-1.5' rm -f *.o core c/*.o c/core c/list_test c/hash_test c/array_test rm -f hunt hunt_static @@ -312,7 +348,7 @@ debian/rules override_dh_auto_build make[1]: Entering directory '/build/reproducible-path/hunt-1.5' dh_auto_build - make -j22 "INSTALL=install --strip-program=true" + make -j10 "INSTALL=install --strip-program=true" make[2]: Entering directory '/build/reproducible-path/hunt-1.5' cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hunt.o hunt.c cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o main.o main.c @@ -324,24 +360,12 @@ cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rst.o rst.c cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o menu.o menu.c cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hijack.o hijack.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rstd.o rstd.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sniff.o sniff.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o macdisc.o macdisc.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tap.o tap.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arphijack.o arphijack.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tty.o tty.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o synchijack.o synchijack.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arpspoof.o arpspoof.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hostup.o hostup.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o addpolicy.o addpolicy.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o options.o options.c -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o resolv.o resolv.c In file included from c/array.c:10: c/array.c: In function 'array_init': c/array.c:27:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 27 | assert(a->a_arr = malloc(size * sizeof(struct array_item))); | ^ -In file included from addpolicy.c:9: +In file included from net.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -349,11 +373,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from macdisc.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -In file included from net.c:9: +In file included from hunt.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -361,11 +381,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from hijack.c:9: +In file included from util.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -373,15 +389,11 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from arpspoof.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -In file included from synchijack.c:9: +In file included from rst.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ -In file included from hunt.c:9: +In file included from menu.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -393,11 +405,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from tty.c:9: +In file included from hijack.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -405,7 +413,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from hostup.c:9: +In file included from main.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -413,6 +421,157 @@ 47 | #include "c/hash.h" +++ |+#include 48 | +net.c: In function 'is_icmp_reply': +net.c:189:24: warning: variable 'seq' set but not used [-Wunused-but-set-variable] + 189 | unsigned short seq, id; + | ^~~ +menu.c: In function 'menu_choose_mac': +menu.c:254:36: warning: pointer targets in passing argument 2 of 'parse_mac' differ in signedness [-Wpointer-sign] + 254 | if (parse_mac(buf, mac_ret) == 0) + | ^~~~~~~ + | | + | unsigned char * +menu.c:173:32: note: expected 'char *' but argument is of type 'unsigned char *' + 173 | int parse_mac(char *buf, char *mac_ret) + | ~~~~~~^~~~~~~ +menu.c: In function 'menu_choose_ports': +menu.c:281:38: warning: pointer targets in passing argument 2 of 'parse_ports' differ in signedness [-Wpointer-sign] + 281 | if (parse_ports(buf, ret_ports) == 0) + | ^~~~~~~~~ + | | + | int * +menu.c:58:42: note: expected 'unsigned int *' but argument is of type 'int *' + 58 | int parse_ports(char *buf, unsigned int *ret_ports) + | ~~~~~~~~~~~~~~^~~~~~~~~ +menu.c: In function 'menu_choose_host_mask_ports_dfl': +menu.c:347:43: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] + 347 | buf_p += sprintf_db_ports(dfl_ports, buf_p, + | ^~~~~~~~~ + | | + | int * +hunt.h:415:36: note: expected 'unsigned int *' but argument is of type 'int *' + 415 | int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); + | ~~~~~~~~~~~~~~^~~~~ +menu.c: In function 'menu_prompt': +rst.c: In function 'rst': +rst.c:60:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 60 | ts.src_mac = ci->dst.dst_mac; + | ^ +rst.c:61:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 61 | ts.dst_mac = ci->dst.src_mac; + | ^ +rst.c:69:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 69 | ts.src_mac = ci->src.dst_mac; + | ^ +rst.c:70:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 70 | ts.dst_mac = ci->src.src_mac; + | ^ +menu.c:33:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 33 | fgets(buf, buf_size, stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +hijack.c: In function 'fast_ack_to_dst': +hijack.c:89:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 89 | ts.src_mac = ci->src.src_mac; + | ^ +hijack.c:90:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 90 | ts.dst_mac = ci->dst.src_mac; + | ^ +menu.c: In function 'menu_choose_char_nconn': +menu.c:426:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 426 | fgets(buf, sizeof(buf), stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +hijack.c: In function 'stormack_hijack': +hijack.c:223:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 223 | ts.src_mac = ci->dst.dst_mac; + | ^ +menu.c: In function 'menu_choose_string': +hijack.c:224:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 224 | ts.dst_mac = ci->dst.src_mac; + | ^ +menu.c:487:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 487 | fgets(buf, sizeof(buf), stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +hunt.c: In function 'conn_add_update': +hunt.c:393:51: warning: variable 'h_dst' set but not used [-Wunused-but-set-variable] + 393 | struct host_info *h_src, *h_dst; + | ^~~~~ +hunt.c: In function 'mac_arp_learn': +hunt.c:696:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 696 | mac = arpethh->ar_sha; + | ^ +hunt.c: In function 'mac_ip_learn': +main.c: In function 'a_hijack': +main.c:350:48: warning: pointer targets in passing argument 2 of 'user_arp_hijack' differ in signedness [-Wpointer-sign] + 350 | retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); + | ^~~~~~~~~~~~ + | | + | unsigned char * +hunt.c:710:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 710 | mac = p->p_ethh->h_source; + | ^ +hunt.h:503:55: note: expected 'char *' but argument is of type 'unsigned char *' + 503 | int user_arp_hijack(struct user_conn_info *uci, char *src_fake_mac, + | ~~~~~~^~~~~~~~~~~~ +main.c:350:62: warning: pointer targets in passing argument 3 of 'user_arp_hijack' differ in signedness [-Wpointer-sign] + 350 | retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); + | ^~~~~~~~~~~~ + | | + | unsigned char * +hunt.h:504:27: note: expected 'char *' but argument is of type 'unsigned char *' + 504 | char *dst_fake_mac, int input_mode); + | ~~~~~~^~~~~~~~~~~~ +main.c:373:38: warning: pointer targets in passing argument 1 of 'user_arp_hijack_done' differ in signedness [-Wpointer-sign] + 373 | user_arp_hijack_done(src_fake_mac, dst_fake_mac); + | ^~~~~~~~~~~~ + | | + | unsigned char * +hunt.h:505:33: note: expected 'char *' but argument is of type 'unsigned char *' + 505 | void user_arp_hijack_done(char *src_fake_mac, char *dst_fake_mac); + | ~~~~~~^~~~~~~~~~~~ +main.c:373:52: warning: pointer targets in passing argument 2 of 'user_arp_hijack_done' differ in signedness [-Wpointer-sign] + 373 | user_arp_hijack_done(src_fake_mac, dst_fake_mac); + | ^~~~~~~~~~~~ + | | + | unsigned char * +hunt.h:505:53: note: expected 'char *' but argument is of type 'unsigned char *' + 505 | void user_arp_hijack_done(char *src_fake_mac, char *dst_fake_mac); + | ~~~~~~^~~~~~~~~~~~ +main.c: In function 'main': +main.c:509:70: warning: backslash and newline separated by space + 509 | fprintf(stderr, "Network interface %s does not have "\ + | +hunt.c: In function 'print_mac_table': +hunt.c:1016:40: warning: pointer targets in passing argument 2 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] + 1016 | sprintf_eth_mac(buf, mi->mac); + | ~~^~~~~ + | | + | char * +hunt.h:422:45: note: expected 'unsigned char *' but argument is of type 'char *' + 422 | int sprintf_eth_mac(char *b, unsigned char *mac); + | ~~~~~~~~~~~~~~~^~~ +net.c: In function 'send_tcp_packet': +main.c: In function 'simple_hijack': +net.c:85:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] + 85 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); + | ^ +main.c:250:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 250 | fgets(cmdbuf, sizeof(cmdbuf), stdin); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +net.c: In function 'send_icmp_packet': +net.c:151:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] + 151 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); + | ^ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rstd.o rstd.c +net.c: In function 'send_arp_packet': +net.c:246:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] + 246 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); + | ^ +net.c: In function 'send_packet': +net.c:274:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] + 274 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); + | ^ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sniff.o sniff.c +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o macdisc.o macdisc.c In file included from rstd.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -421,14 +580,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from resolv.c:1: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -In file included from options.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tap.o tap.c In file included from sniff.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -437,39 +589,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from menu.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from arphijack.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from main.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from util.c:9: +In file included from macdisc.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -477,122 +597,401 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -macdisc.c: In function 'mac_discover': -macdisc.c:40:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 40 | as.src_mac = my_eth_mac; - | ^ -macdisc.c:41:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 41 | as.dst_mac = mac_broadcast; - | ^ -macdisc.c:43:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 43 | as.sender_mac = my_eth_mac; - | ^ -net.c: In function 'is_icmp_reply': -net.c:189:24: warning: variable 'seq' set but not used [-Wunused-but-set-variable] - 189 | unsigned short seq, id; - | ^~~ -macdisc.c:45:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 45 | as.target_mac = mac_zero; - | ^ -addpolicy.c: In function 'addpolicy_add_item': -addpolicy.c:113:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 113 | &src_mask, src_ports, 0, 0, NULL) < 0) +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arphijack.o arphijack.c +rstd.c: In function 'rst_add_item': +rstd.c:265:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 265 | &src_mask, src_ports, 0, 0, NULL) < 0) | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -addpolicy.c:116:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 116 | &dst_mask, dst_ports, 0, 0, NULL) < 0) +rstd.c:268:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 268 | &dst_mask, dst_ports, 0, 0, NULL) < 0) | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -addpolicy.c:125:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 125 | port_htons(src_ports); +rstd.c:281:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 281 | port_htons(src_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -addpolicy.c:129:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 129 | port_htons(dst_ports); +rstd.c:285:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 285 | port_htons(dst_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -addpolicy.c: In function 'addpolicy_mod_item': -addpolicy.c:150:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 150 | &src_ip, &src_mask, src_ports, +rstd.c: In function 'rst_mod_item': +rstd.c:314:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 314 | &src_ip, &src_mask, src_ports, | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -addpolicy.c:151:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 151 | api->src_addr, api->src_mask, api->src_ports) < 0) +rstd.c:315:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 315 | dbi->src_addr, dbi->src_mask, dbi->src_ports) < 0) | ~~~^~~~~~~~~~~ | | | unsigned int * hunt.h:372:66: note: expected 'int *' but argument is of type 'unsigned int *' 372 | unsigned int dfl_ip, unsigned int dfl_mask, int *dfl_ports); | ~~~~~^~~~~~~~~ -addpolicy.c:154:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 154 | &dst_ip, &dst_mask, dst_ports, +rstd.c:318:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 318 | &dst_ip, &dst_mask, dst_ports, | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -addpolicy.c:155:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 155 | api->dst_addr, api->dst_mask, api->dst_ports) < 0) +rstd.c:319:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 319 | dbi->dst_addr, dbi->dst_mask, dbi->dst_ports) < 0) | ~~~^~~~~~~~~~~ | | | unsigned int * hunt.h:372:66: note: expected 'int *' but argument is of type 'unsigned int *' 372 | unsigned int dfl_ip, unsigned int dfl_mask, int *dfl_ports); | ~~~~~^~~~~~~~~ -addpolicy.c:157:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 157 | port_htons(src_ports); +rstd.c:326:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 326 | port_htons(src_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -addpolicy.c:158:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 158 | port_htons(dst_ports); +rstd.c:327:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 327 | port_htons(dst_ports); + | ^~~~~~~~~ + | | + | int * +hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' + 428 | void port_htons(unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +macdisc.c: In function 'mac_discover': +macdisc.c:40:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 40 | as.src_mac = my_eth_mac; + | ^ +macdisc.c:41:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 41 | as.dst_mac = mac_broadcast; + | ^ +macdisc.c:43:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 43 | as.sender_mac = my_eth_mac; + | ^ +macdisc.c:45:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 45 | as.target_mac = mac_zero; + | ^ +sniff.c: In function 'sniff_item_print': +sniff.c:128:28: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] + 128 | sprintf_db_ports(si->src_ports, buf_src_ports, sizeof(buf_src_ports), 1); + | ~~^~~~~~~~~~~ + | | + | int * +hunt.h:415:36: note: expected 'unsigned int *' but argument is of type 'int *' + 415 | int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); + | ~~~~~~~~~~~~~~^~~~~ +sniff.c:129:28: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] + 129 | sprintf_db_ports(si->dst_ports, buf_dst_ports, sizeof(buf_dst_ports), 1); + | ~~^~~~~~~~~~~ + | | + | int * +hunt.h:415:36: note: expected 'unsigned int *' but argument is of type 'int *' + 415 | int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); + | ~~~~~~~~~~~~~~^~~~~ +sniff.c: In function 'sniff_packet_match': +sniff.c:174:41: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] + 174 | port_match(tcph->source, si->src_ports) && + | ~~^~~~~~~~~~~ + | | + | int * +hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' + 427 | int port_match(int port, unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:175:39: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] + 175 | port_match(tcph->dest, si->dst_ports)) + | ~~^~~~~~~~~~~ + | | + | int * +hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' + 427 | int port_match(int port, unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:181:41: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] + 181 | port_match(tcph->source, si->dst_ports) && + | ~~^~~~~~~~~~~ + | | + | int * +hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' + 427 | int port_match(int port, unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:182:39: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] + 182 | port_match(tcph->dest, si->src_ports)) + | ~~^~~~~~~~~~~ + | | + | int * +hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' + 427 | int port_match(int port, unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c: In function 'sniff_add_item': +sniff.c:664:25: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 664 | &src_mask, src_ports, 0, 0, NULL) < 0) + | ^~~~~~~~~ + | | + | int * +hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:664:36: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 664 | &src_mask, src_ports, 0, 0, NULL) < 0) + | ^~~~~~~~~ + | | + | int * +hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~~ +sniff.c:667:25: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 667 | &dst_mask, dst_ports, 0, 0, NULL) < 0) + | ^~~~~~~~~ + | | + | int * +hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:667:36: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 667 | &dst_mask, dst_ports, 0, 0, NULL) < 0) + | ^~~~~~~~~ + | | + | int * +hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~~ +sniff.c:705:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 705 | port_htons(src_ports); + | ^~~~~~~~~ + | | + | int * +hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' + 428 | void port_htons(unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:709:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 709 | port_htons(dst_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c: In function 'sniff_mod_item': +sniff.c:747:38: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 747 | &src_ip, &src_mask, src_ports, + | ^~~~~~~~~ + | | + | int * +hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:747:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 747 | &src_ip, &src_mask, src_ports, + | ^~~~~~~~~ + | | + | int * +hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~~ +sniff.c:751:38: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 751 | &dst_ip, &dst_mask, dst_ports, + | ^~~~~~~~~ + | | + | int * +hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:751:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 751 | &dst_ip, &dst_mask, dst_ports, + | ^~~~~~~~~ + | | + | int * +hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' + 371 | unsigned int *ret_mask, unsigned int *ret_ports, + | ~~~~~~~~~~~~~~^~~~~~~~~ +sniff.c:770:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 770 | port_htons(src_ports); + | ^~~~~~~~~ + | | + | int * +hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' + 428 | void port_htons(unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +sniff.c:771:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 771 | port_htons(dst_ports); + | ^~~~~~~~~ + | | + | int * +hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' + 428 | void port_htons(unsigned int *db_ports); + | ~~~~~~~~~~~~~~^~~~~~~~ +In file included from arphijack.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +In file included from tap.c:31: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +tap.c: In function 'get_ifc_info': +tap.c:135:31: warning: pointer targets in passing argument 1 of 'print_eth_mac' differ in signedness [-Wpointer-sign] + 135 | print_eth_mac(mac); + | ^~~ + | | + | char * +hunt.h:421:34: note: expected 'unsigned char *' but argument is of type 'char *' + 421 | int print_eth_mac(unsigned char *mac); + | ~~~~~~~~~~~~~~~^~~ +arphijack.c: In function 'watch_tty': +arphijack.c:81:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 81 | ts.dst_mac = wtd->ci->dst.src_mac; + | ^ +arphijack.c: In function 'arp_hijack': +arphijack.c:122:54: warning: pointer targets in passing argument 3 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 122 | ci->src.src_mac, ci->dst.src_mac, + | ~~~~~~~^~~~~~~~ + | | + | unsigned char * +hunt.h:522:23: note: expected 'char *' but argument is of type 'unsigned char *' + 522 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~ +arphijack.c:122:71: warning: pointer targets in passing argument 4 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 122 | ci->src.src_mac, ci->dst.src_mac, + | ~~~~~~~^~~~~~~~ + | | + | unsigned char * +hunt.h:522:38: note: expected 'char *' but argument is of type 'unsigned char *' + 522 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~ +arphijack.c:143:54: warning: pointer targets in passing argument 3 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 143 | ci->dst.src_mac, ci->src.src_mac, + | ~~~~~~~^~~~~~~~ + | | + | unsigned char * +hunt.h:522:23: note: expected 'char *' but argument is of type 'unsigned char *' + 522 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~ +arphijack.c:143:71: warning: pointer targets in passing argument 4 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 143 | ci->dst.src_mac, ci->src.src_mac, + | ~~~~~~~^~~~~~~~ + | | + | unsigned char * +hunt.h:522:38: note: expected 'char *' but argument is of type 'unsigned char *' + 522 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~ +arphijack.c:169:26: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 169 | wtd.src_fake_mac = asi_src ? asi_src->src_fake_mac : ci->src.src_mac; + | ^ +arphijack.c:200:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 200 | ts.src_mac = asi_src ? asi_src->src_fake_mac : + | ^ +arphijack.c:202:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 202 | ts.dst_mac = ci->dst.src_mac; + | ^ +arphijack.c:224:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 224 | ts.src_mac = asi_dst ? asi_dst->src_fake_mac : + | ^ +arphijack.c:226:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 226 | ts.dst_mac = ci->src.src_mac; + | ^ +rstd.c: In function 'db_item_print': +rstd.c:228:30: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] + 228 | sprintf(buf, "%s/%d [%s]", host_lookup(dbi->src_addr, hl_mode), + | ^~ + 229 | count_mask(dbi->src_mask), buf_src_ports); + | ~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:906, + from rstd.c:10: +In function 'sprintf', + inlined from 'db_item_print' at rstd.c:228:2: +/usr/include/i386-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +sniff.c: In function 'sniff_item_print': +sniff.c:135:35: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] + 135 | sprintf(host_buf, "%s/%d [%s]", host_lookup(si->src_addr, hl_mode), + | ^~ + 136 | count_mask(si->src_mask), buf_src_ports); + | ~~~~~~~~~~~~~ +In file included from /usr/include/stdio.h:906, + from sniff.c:12: +In function 'sprintf', + inlined from 'sniff_item_print' at sniff.c:135:2: +/usr/include/i386-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tty.o tty.c +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o synchijack.o synchijack.c +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arpspoof.o arpspoof.c +In file included from tty.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hostup.o hostup.c +In file included from arpspoof.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +In file included from synchijack.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o addpolicy.o addpolicy.c +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o options.o options.c arpspoof.c: In function 'send_src_spoof_to_dst': arpspoof.c:85:24: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 85 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : asi->src_fake_mac; | ^ -synchijack.c: In function 'hijack_sync_init_msg': arpspoof.c:86:24: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 86 | as_dst.dst_mac = asi->dst_mac; | ^ -synchijack.c:153:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 153 | ts.src_mac = ci->src.dst_mac; - | ^ arpspoof.c:88:27: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 88 | as_dst.sender_mac = asi->src_fake_mac; | ^ -synchijack.c:154:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 154 | ts.dst_mac = ci->src.src_mac; - | ^ arpspoof.c:90:27: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 90 | as_dst.target_mac = asi->dst_mac; | ^ @@ -603,19 +1002,70 @@ arpspoof.c:118:24: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 118 | as_dst.dst_mac = asi->dst_mac; /* don't use broadcast - we want that it is received only by the target */ | ^ -synchijack.c: In function 'need_read_write_negative': arpspoof.c:120:27: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 120 | as_dst.sender_mac = asi->src_fake_mac; | ^ arpspoof.c:122:27: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 122 | as_dst.target_mac = mac_zero; | ^ +arpspoof.c: In function 'stop_arp_spoof': +arpspoof.c:543:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 543 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : + | ^ +In file included from hostup.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +arpspoof.c:546:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 546 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : + | ^ +arpspoof.c:548:32: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 548 | as_dst.dst_mac = asi->dst_mac; + | ^ +arpspoof.c:550:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 550 | as_dst.sender_mac = asi_src_mac; + | ^ +arpspoof.c:552:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 552 | as_dst.target_mac = asi->dst_mac; + | ^ +arpspoof.c:565:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 565 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : + | ^ +arpspoof.c:568:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 568 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : + | ^ +arpspoof.c:570:32: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 570 | as_dst.src_mac = asi->src_mac; + | ^ +arpspoof.c:571:32: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 571 | as_dst.dst_mac = asi->dst_mac; + | ^ +arpspoof.c:573:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 573 | as_dst.sender_mac = asi_src_mac; + | ^ +arpspoof.c:575:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 575 | as_dst.target_mac = mac_zero; + | ^ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o resolv.o resolv.c +synchijack.c: In function 'hijack_sync_init_msg': +synchijack.c:153:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 153 | ts.src_mac = ci->src.dst_mac; + | ^ +synchijack.c:154:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 154 | ts.dst_mac = ci->src.src_mac; + | ^ +synchijack.c: In function 'need_read_write_negative': synchijack.c:220:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 220 | ts.src_mac = ci->dst.dst_mac; | ^ synchijack.c:221:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 221 | ts.dst_mac = ci->dst.src_mac; | ^ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o timer.o timer.c synchijack.c: In function 'need_write_positive': synchijack.c:245:28: warning: format '%f' expects argument of type 'double', but argument 3 has type 'char *' [-Wformat=] 245 | sprintf(fin_msg, "%f%", suggest_sync_msg(0)); @@ -627,45 +1077,123 @@ synchijack.c:245:29: warning: spurious trailing '%' in format [-Wformat=] 245 | sprintf(fin_msg, "%f%", suggest_sync_msg(0)); | ^ +arpspoof.c: In function 'arp_spoof_range_list': synchijack.c:279:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 279 | ts.src_mac = ci->src.dst_mac; | ^ +arpspoof.c:951:41: warning: pointer targets in passing argument 2 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] + 951 | sprintf_eth_mac(buf, asr->src_fake_mac); + | ~~~^~~~~~~~~~~~~~ + | | + | char * +hunt.h:422:45: note: expected 'unsigned char *' but argument is of type 'char *' + 422 | int sprintf_eth_mac(char *b, unsigned char *mac); + | ~~~~~~~~~~~~~~~^~~ synchijack.c:280:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 280 | ts.dst_mac = ci->src.src_mac; | ^ synchijack.c: In function 'need_read_positive': -hijack.c: In function 'fast_ack_to_dst': synchijack.c:307:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 307 | ts.src_mac = ci->src.dst_mac; | ^ -hijack.c:89:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 89 | ts.src_mac = ci->src.src_mac; - | ^ synchijack.c:308:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 308 | ts.dst_mac = ci->src.src_mac; | ^ -hijack.c:90:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 90 | ts.dst_mac = ci->dst.src_mac; - | ^ -hijack.c: In function 'stormack_hijack': -hijack.c:223:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 223 | ts.src_mac = ci->dst.dst_mac; - | ^ -hijack.c:224:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 224 | ts.dst_mac = ci->dst.src_mac; - | ^ +arpspoof.c: In function 'arp_spoof_add_item': +arpspoof.c:1008:71: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 1008 | mi_dst ? mi_dst->mac : NULL, src_fake_mac, + | ^~~~~~~~~~~~ + | | + | unsigned char * +arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' + 398 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~~~~~~ synchijack.c: In function 'f_hijack_sync': synchijack.c:419:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 419 | ts.src_mac = ci->dst.dst_mac; | ^ -arpspoof.c: In function 'stop_arp_spoof': synchijack.c:420:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 420 | ts.dst_mac = ci->dst.src_mac; | ^ +synchijack.c: In function 'hijack_sync': +synchijack.c:464:25: warning: variable 'absts' set but not used [-Wunused-but-set-variable] + 464 | struct timespec absts; + | ^~~~~ +arpspoof.c: In function 'arp_spoof_add_h': +arpspoof.c:1163:84: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 1163 | asi_src_in_dst = start_arp_spoof(src_ip, dst_ip, mi_src->mac, mi_dst->mac, src_fake_mac, + | ^~~~~~~~~~~~ + | | + | unsigned char * +arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' + 398 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~~~~~~ +arpspoof.c:1165:84: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] + 1165 | asi_dst_in_src = start_arp_spoof(dst_ip, src_ip, mi_dst->mac, mi_src->mac, dst_fake_mac, + | ^~~~~~~~~~~~ + | | + | unsigned char * +arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' + 398 | char *src_mac, char *dst_mac, char *src_fake_mac, + | ~~~~~~^~~~~~~~~~~~ +arpspoof.c: In function 'arpspoof_test': +arpspoof.c:1390:68: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] + 1390 | send_icmp_request(asi->src_addr, asi->dst_addr, asi->src_fake_mac, + | ~~~^~~~~~~~~~~~~~ + | | + | unsigned char * +hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' + 698 | char *src_mac, char *dst_mac, unsigned short seq); + | ~~~~~~^~~~~~~ +arpspoof.c:1391:38: warning: pointer targets in passing argument 4 of 'send_icmp_request' differ in signedness [-Wpointer-sign] + 1391 | asi->dst_mac, 1 + i); + | ~~~^~~~~~~~~ + | | + | unsigned char * +hunt.h:698:45: note: expected 'char *' but argument is of type 'unsigned char *' + 698 | char *src_mac, char *dst_mac, unsigned short seq); + | ~~~~~~^~~~~~~ +arpspoof.c:1397:51: warning: pointer targets in passing argument 4 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] + 1397 | asi->dst_mac, asi->src_fake_mac); + | ~~~^~~~~~~~~ + | | + | unsigned char * +hunt.h:700:25: note: expected 'char *' but argument is of type 'unsigned char *' + 700 | char *src_mac, char *dst_mac); + | ~~~~~~^~~~~~~ +arpspoof.c:1397:65: warning: pointer targets in passing argument 5 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] + 1397 | asi->dst_mac, asi->src_fake_mac); + | ~~~^~~~~~~~~~~~~~ + | | + | unsigned char * +hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' + 700 | char *src_mac, char *dst_mac); + | ~~~~~~^~~~~~~ +In file included from addpolicy.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +sniff.c: In function 'sniffer_log_print': +sniff.c:236:56: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 511 [-Wformat-overflow=] + 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); + | ^~ +sniff.c:236:52: note: directive argument in the range [1, 2147483647] + 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); + | ^~~~~~~ +In function 'sprintf', + inlined from 'sniffer_log_print' at sniff.c:236:5: +/usr/include/i386-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 523 bytes into a destination of size 512 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ hostup.c: In function 'perform_ping': -arpspoof.c:543:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 543 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : - | ^ hostup.c:87:63: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] 87 | ip, my_eth_mac, | ^~~~~~~~~~ @@ -674,9 +1202,6 @@ hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' 698 | char *src_mac, char *dst_mac, unsigned short seq); | ~~~~~~^~~~~~~ -arpspoof.c:546:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 546 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : - | ^ hostup.c:93:49: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] 93 | my_eth_mac, fake_mac, htons(j + 2000)); | ^~~~~~~~~~ @@ -685,28 +1210,14 @@ hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' 698 | char *src_mac, char *dst_mac, unsigned short seq); | ~~~~~~^~~~~~~ -hunt.c: In function 'conn_add_update': hostup.c:93:61: warning: pointer targets in passing argument 4 of 'send_icmp_request' differ in signedness [-Wpointer-sign] 93 | my_eth_mac, fake_mac, htons(j + 2000)); | ^~~~~~~~ | | | unsigned char * -arpspoof.c:548:32: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 548 | as_dst.dst_mac = asi->dst_mac; - | ^ -synchijack.c: In function 'hijack_sync': hunt.h:698:45: note: expected 'char *' but argument is of type 'unsigned char *' 698 | char *src_mac, char *dst_mac, unsigned short seq); | ~~~~~~^~~~~~~ -hunt.c:393:51: warning: variable 'h_dst' set but not used [-Wunused-but-set-variable] - 393 | struct host_info *h_src, *h_dst; - | ^~~~~ -synchijack.c:464:25: warning: variable 'absts' set but not used [-Wunused-but-set-variable] - 464 | struct timespec absts; - | ^~~~~ -arpspoof.c:550:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 550 | as_dst.sender_mac = asi_src_mac; - | ^ hostup.c:106:52: warning: pointer targets in passing argument 4 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] 106 | p->p_ethh->h_source, my_eth_mac) || | ~~~~~~~~~^~~~~~~~~~ @@ -715,30 +1226,27 @@ hunt.h:700:25: note: expected 'char *' but argument is of type 'unsigned char *' 700 | char *src_mac, char *dst_mac); | ~~~~~~^~~~~~~ -arpspoof.c:552:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 552 | as_dst.target_mac = asi->dst_mac; - | ^ hostup.c:106:64: warning: pointer targets in passing argument 5 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] 106 | p->p_ethh->h_source, my_eth_mac) || | ^~~~~~~~~~ | | | unsigned char * -hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' - 700 | char *src_mac, char *dst_mac); - | ~~~~~~^~~~~~~ -In file included from tap.c:31: +In file included from resolv.c:1: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ +hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' + 700 | char *src_mac, char *dst_mac); + | ~~~~~~^~~~~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | hostup.c:108:43: warning: pointer targets in passing argument 4 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] 108 | fake_mac, my_eth_mac))) { | ^~~~~~~~ | | | unsigned char * -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | hunt.h:700:25: note: expected 'char *' but argument is of type 'unsigned char *' 700 | char *src_mac, char *dst_mac); | ~~~~~~^~~~~~~ @@ -747,15 +1255,9 @@ | ^~~~~~~~~~ | | | unsigned char * -arpspoof.c:565:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 565 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : - | ^ hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' 700 | char *src_mac, char *dst_mac); | ~~~~~~^~~~~~~ -arpspoof.c:568:40: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 568 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : - | ^ hostup.c: In function 'send_arp_message': hostup.c:125:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 125 | as.src_mac = my_eth_mac; @@ -766,18 +1268,12 @@ hostup.c:130:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 130 | as.target_mac = mac_zero; | ^ -arpspoof.c:570:32: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 570 | as_dst.src_mac = asi->src_mac; - | ^ hostup.c: In function 'perform_arp': hostup.c:159:62: warning: pointer targets in passing argument 2 of 'send_arp_message' differ in signedness [-Wpointer-sign] 159 | send_arp_message(ip, mac_broadcast); | ^~~~~~~~~~~~~ | | | unsigned char * -arpspoof.c:571:32: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 571 | as_dst.dst_mac = asi->dst_mac; - | ^ hostup.c:121:53: note: expected 'char *' but argument is of type 'unsigned char *' 121 | static void send_arp_message(unsigned int ip, char *dst_mac) | ~~~~~~^~~~~~~ @@ -789,251 +1285,138 @@ hostup.c:121:53: note: expected 'char *' but argument is of type 'unsigned char *' 121 | static void send_arp_message(unsigned int ip, char *dst_mac) | ~~~~~~^~~~~~~ -hunt.c: In function 'mac_arp_learn': -arpspoof.c:573:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 573 | as_dst.sender_mac = asi_src_mac; - | ^ -hunt.c:696:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 696 | mac = arpethh->ar_sha; - | ^ -arpspoof.c:575:35: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 575 | as_dst.target_mac = mac_zero; - | ^ -hunt.c: In function 'mac_ip_learn': -menu.c: In function 'menu_choose_mac': -hunt.c:710:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 710 | mac = p->p_ethh->h_source; - | ^ -menu.c:254:36: warning: pointer targets in passing argument 2 of 'parse_mac' differ in signedness [-Wpointer-sign] - 254 | if (parse_mac(buf, mac_ret) == 0) - | ^~~~~~~ - | | - | unsigned char * -menu.c:173:32: note: expected 'char *' but argument is of type 'unsigned char *' - 173 | int parse_mac(char *buf, char *mac_ret) - | ~~~~~~^~~~~~~ +In file included from options.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | hostup.c: In function 'host_up': -rstd.c: In function 'rst_add_item': -rstd.c:265:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 265 | &src_mask, src_ports, 0, 0, NULL) < 0) +hostup.c:299:33: warning: pointer targets in passing argument 1 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] + 299 | sprintf_eth_mac(buf_mac, suggest_mac()); + | ^~~~~~~ + | | + | unsigned char * +hunt.h:422:27: note: expected 'char *' but argument is of type 'unsigned char *' + 422 | int sprintf_eth_mac(char *b, unsigned char *mac); + | ~~~~~~^ +hostup.c:300:84: warning: pointer targets in passing argument 3 of 'menu_choose_mac' differ in signedness [-Wpointer-sign] + 300 | if (menu_choose_mac("choose unused MAC in your network", fake_mac, buf_mac) >= 0) { + | ^~~~~~~ + | | + | unsigned char * +hunt.h:365:64: note: expected 'char *' but argument is of type 'unsigned char *' + 365 | int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); + | ~~~~~~^~~ +hostup.c:314:33: warning: pointer targets in passing argument 1 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] + 314 | sprintf_eth_mac(buf_mac, suggest_mac()); + | ^~~~~~~ + | | + | unsigned char * +hunt.h:422:27: note: expected 'char *' but argument is of type 'unsigned char *' + 422 | int sprintf_eth_mac(char *b, unsigned char *mac); + | ~~~~~~^ +hostup.c:315:84: warning: pointer targets in passing argument 3 of 'menu_choose_mac' differ in signedness [-Wpointer-sign] + 315 | if (menu_choose_mac("choose unused MAC in your network", fake_mac, buf_mac) >= 0) { + | ^~~~~~~ + | | + | unsigned char * +hunt.h:365:64: note: expected 'char *' but argument is of type 'unsigned char *' + 365 | int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); + | ~~~~~~^~~ +cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pktrelay.o pktrelay.c +addpolicy.c: In function 'addpolicy_add_item': +addpolicy.c:113:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 113 | &src_mask, src_ports, 0, 0, NULL) < 0) | ^~~~~~~~~ | | | int * -menu.c: In function 'menu_choose_ports': hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -menu.c:281:38: warning: pointer targets in passing argument 2 of 'parse_ports' differ in signedness [-Wpointer-sign] - 281 | if (parse_ports(buf, ret_ports) == 0) - | ^~~~~~~~~ - | | - | int * -menu.c:58:42: note: expected 'unsigned int *' but argument is of type 'int *' - 58 | int parse_ports(char *buf, unsigned int *ret_ports) - | ~~~~~~~~~~~~~~^~~~~~~~~ -rstd.c:268:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 268 | &dst_mask, dst_ports, 0, 0, NULL) < 0) +addpolicy.c:116:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 116 | &dst_mask, dst_ports, 0, 0, NULL) < 0) | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -tap.c: In function 'get_ifc_info': -tap.c:135:31: warning: pointer targets in passing argument 1 of 'print_eth_mac' differ in signedness [-Wpointer-sign] - 135 | print_eth_mac(mac); - | ^~~ - | | - | char * -hunt.h:421:34: note: expected 'unsigned char *' but argument is of type 'char *' - 421 | int print_eth_mac(unsigned char *mac); - | ~~~~~~~~~~~~~~~^~~ -hostup.c:299:33: warning: pointer targets in passing argument 1 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] - 299 | sprintf_eth_mac(buf_mac, suggest_mac()); - | ^~~~~~~ - | | - | unsigned char * -hunt.h:422:27: note: expected 'char *' but argument is of type 'unsigned char *' - 422 | int sprintf_eth_mac(char *b, unsigned char *mac); - | ~~~~~~^ -rstd.c:281:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 281 | port_htons(src_ports); +addpolicy.c:125:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 125 | port_htons(src_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -hostup.c:300:84: warning: pointer targets in passing argument 3 of 'menu_choose_mac' differ in signedness [-Wpointer-sign] - 300 | if (menu_choose_mac("choose unused MAC in your network", fake_mac, buf_mac) >= 0) { - | ^~~~~~~ - | | - | unsigned char * -rstd.c:285:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 285 | port_htons(dst_ports); +addpolicy.c:129:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 129 | port_htons(dst_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -hunt.h:365:64: note: expected 'char *' but argument is of type 'unsigned char *' - 365 | int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); - | ~~~~~~^~~ -menu.c: In function 'menu_choose_host_mask_ports_dfl': -menu.c:347:43: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] - 347 | buf_p += sprintf_db_ports(dfl_ports, buf_p, - | ^~~~~~~~~ - | | - | int * -rstd.c: In function 'rst_mod_item': -hunt.h:415:36: note: expected 'unsigned int *' but argument is of type 'int *' - 415 | int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); - | ~~~~~~~~~~~~~~^~~~~ -hostup.c:314:33: warning: pointer targets in passing argument 1 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] - 314 | sprintf_eth_mac(buf_mac, suggest_mac()); - | ^~~~~~~ - | | - | unsigned char * -rstd.c:314:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 314 | &src_ip, &src_mask, src_ports, +addpolicy.c: In function 'addpolicy_mod_item': +addpolicy.c:150:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 150 | &src_ip, &src_mask, src_ports, | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -hunt.h:422:27: note: expected 'char *' but argument is of type 'unsigned char *' - 422 | int sprintf_eth_mac(char *b, unsigned char *mac); - | ~~~~~~^ -rstd.c:315:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 315 | dbi->src_addr, dbi->src_mask, dbi->src_ports) < 0) +addpolicy.c:151:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 151 | api->src_addr, api->src_mask, api->src_ports) < 0) | ~~~^~~~~~~~~~~ | | | unsigned int * hunt.h:372:66: note: expected 'int *' but argument is of type 'unsigned int *' 372 | unsigned int dfl_ip, unsigned int dfl_mask, int *dfl_ports); | ~~~~~^~~~~~~~~ -hostup.c:315:84: warning: pointer targets in passing argument 3 of 'menu_choose_mac' differ in signedness [-Wpointer-sign] - 315 | if (menu_choose_mac("choose unused MAC in your network", fake_mac, buf_mac) >= 0) { - | ^~~~~~~ - | | - | unsigned char * -rstd.c:318:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 318 | &dst_ip, &dst_mask, dst_ports, +addpolicy.c:154:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 154 | &dst_ip, &dst_mask, dst_ports, | ^~~~~~~~~ | | | int * hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ -rstd.c:319:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 319 | dbi->dst_addr, dbi->dst_mask, dbi->dst_ports) < 0) +addpolicy.c:155:62: warning: pointer targets in passing argument 7 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] + 155 | api->dst_addr, api->dst_mask, api->dst_ports) < 0) | ~~~^~~~~~~~~~~ | | | unsigned int * -hunt.h:365:64: note: expected 'char *' but argument is of type 'unsigned char *' - 365 | int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); - | ~~~~~~^~~ hunt.h:372:66: note: expected 'int *' but argument is of type 'unsigned int *' 372 | unsigned int dfl_ip, unsigned int dfl_mask, int *dfl_ports); | ~~~~~^~~~~~~~~ -arpspoof.c: In function 'arp_spoof_range_list': -rstd.c:326:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 326 | port_htons(src_ports); +addpolicy.c:157:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 157 | port_htons(src_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -arpspoof.c:951:41: warning: pointer targets in passing argument 2 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] - 951 | sprintf_eth_mac(buf, asr->src_fake_mac); - | ~~~^~~~~~~~~~~~~~ - | | - | char * -hunt.h:422:45: note: expected 'unsigned char *' but argument is of type 'char *' - 422 | int sprintf_eth_mac(char *b, unsigned char *mac); - | ~~~~~~~~~~~~~~~^~~ -rstd.c:327:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 327 | port_htons(dst_ports); +addpolicy.c:158:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] + 158 | port_htons(dst_ports); | ^~~~~~~~~ | | | int * hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -hunt.c: In function 'print_mac_table': -hunt.c:1016:40: warning: pointer targets in passing argument 2 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] - 1016 | sprintf_eth_mac(buf, mi->mac); - | ~~^~~~~ - | | - | char * -hunt.h:422:45: note: expected 'unsigned char *' but argument is of type 'char *' - 422 | int sprintf_eth_mac(char *b, unsigned char *mac); - | ~~~~~~~~~~~~~~~^~~ -arpspoof.c: In function 'arp_spoof_add_item': -arpspoof.c:1008:71: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 1008 | mi_dst ? mi_dst->mac : NULL, src_fake_mac, - | ^~~~~~~~~~~~ - | | - | unsigned char * -arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' - 398 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~~~~~~ -arphijack.c: In function 'watch_tty': -arphijack.c:81:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 81 | ts.dst_mac = wtd->ci->dst.src_mac; - | ^ -arphijack.c: In function 'arp_hijack': -arphijack.c:122:54: warning: pointer targets in passing argument 3 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 122 | ci->src.src_mac, ci->dst.src_mac, - | ~~~~~~~^~~~~~~~ - | | - | unsigned char * -hunt.h:522:23: note: expected 'char *' but argument is of type 'unsigned char *' - 522 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~ -arphijack.c:122:71: warning: pointer targets in passing argument 4 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 122 | ci->src.src_mac, ci->dst.src_mac, - | ~~~~~~~^~~~~~~~ - | | - | unsigned char * -hunt.h:522:38: note: expected 'char *' but argument is of type 'unsigned char *' - 522 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~ -arphijack.c:143:54: warning: pointer targets in passing argument 3 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 143 | ci->dst.src_mac, ci->src.src_mac, - | ~~~~~~~^~~~~~~~ - | | - | unsigned char * -hunt.h:522:23: note: expected 'char *' but argument is of type 'unsigned char *' - 522 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~ -arphijack.c:143:71: warning: pointer targets in passing argument 4 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 143 | ci->dst.src_mac, ci->src.src_mac, - | ~~~~~~~^~~~~~~~ - | | - | unsigned char * -hunt.h:522:38: note: expected 'char *' but argument is of type 'unsigned char *' - 522 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~ -arpspoof.c: In function 'arp_spoof_add_h': -resolv.c: In function 'resolv_request': -resolv.c:105:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 105 | write(fd_req, &req, sizeof(struct req)); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -arphijack.c:169:26: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 169 | wtd.src_fake_mac = asi_src ? asi_src->src_fake_mac : ci->src.src_mac; - | ^ -arpspoof.c:1163:84: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 1163 | asi_src_in_dst = start_arp_spoof(src_ip, dst_ip, mi_src->mac, mi_dst->mac, src_fake_mac, - | ^~~~~~~~~~~~ - | | - | unsigned char * -arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' - 398 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~~~~~~ +In file included from timer.c:12: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | addpolicy.c: In function 'addpolicy_item_print': addpolicy.c:79:35: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] 79 | sprintf(host_buf, "%s/%d [%s]", host_lookup(api->src_addr, hl_mode), @@ -1051,351 +1434,28 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -arphijack.c:200:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 200 | ts.src_mac = asi_src ? asi_src->src_fake_mac : - | ^ -arphijack.c:202:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 202 | ts.dst_mac = ci->dst.src_mac; - | ^ -arpspoof.c:1165:84: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] - 1165 | asi_dst_in_src = start_arp_spoof(dst_ip, src_ip, mi_dst->mac, mi_src->mac, dst_fake_mac, - | ^~~~~~~~~~~~ - | | - | unsigned char * -sniff.c: In function 'sniff_item_print': -arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' - 398 | char *src_mac, char *dst_mac, char *src_fake_mac, - | ~~~~~~^~~~~~~~~~~~ -sniff.c:128:28: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] - 128 | sprintf_db_ports(si->src_ports, buf_src_ports, sizeof(buf_src_ports), 1); - | ~~^~~~~~~~~~~ - | | - | int * -hunt.h:415:36: note: expected 'unsigned int *' but argument is of type 'int *' - 415 | int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); - | ~~~~~~~~~~~~~~^~~~~ -arphijack.c:224:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 224 | ts.src_mac = asi_dst ? asi_dst->src_fake_mac : - | ^ -sniff.c:129:28: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] - 129 | sprintf_db_ports(si->dst_ports, buf_dst_ports, sizeof(buf_dst_ports), 1); - | ~~^~~~~~~~~~~ - | | - | int * -hunt.h:415:36: note: expected 'unsigned int *' but argument is of type 'int *' - 415 | int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); - | ~~~~~~~~~~~~~~^~~~~ -arphijack.c:226:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 226 | ts.dst_mac = ci->src.src_mac; - | ^ -sniff.c: In function 'sniff_packet_match': +resolv.c: In function 'resolv_request': +resolv.c:105:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 105 | write(fd_req, &req, sizeof(struct req)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function 'handle_response': -sniff.c:174:41: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] - 174 | port_match(tcph->source, si->src_ports) && - | ~~^~~~~~~~~~~ - | | - | int * -hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' - 427 | int port_match(int port, unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ -sniff.c:175:39: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] - 175 | port_match(tcph->dest, si->dst_ports)) - | ~~^~~~~~~~~~~ - | | - | int * resolv.c:337:25: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 337 | read(sl->s_fd, res + 1, res->name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' - 427 | int port_match(int port, unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ resolv.c:339:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 339 | write(fd, buf, sizeof(struct res) + res->name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -sniff.c:181:41: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] - 181 | port_match(tcph->source, si->dst_ports) && - | ~~^~~~~~~~~~~ - | | - | int * -hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' - 427 | int port_match(int port, unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ resolv.c: In function 'send_req_to_slave': -sniff.c:182:39: warning: pointer targets in passing argument 2 of 'port_match' differ in signedness [-Wpointer-sign] - 182 | port_match(tcph->dest, si->src_ports)) - | ~~^~~~~~~~~~~ - | | - | int * resolv.c:257:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 257 | write(sl->s_fd, &req, sizeof(struct req)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' - 427 | int port_match(int port, unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ resolv.c:285:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 285 | write(sl->s_fd, &req, sizeof(struct req)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function 'resolv_slave': -In file included from rst.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | resolv.c:226:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 226 | write(fd, res, sizeof(struct res) + res->name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.c: In function 'a_hijack': -main.c:350:48: warning: pointer targets in passing argument 2 of 'user_arp_hijack' differ in signedness [-Wpointer-sign] - 350 | retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); - | ^~~~~~~~~~~~ - | | - | unsigned char * -hunt.h:503:55: note: expected 'char *' but argument is of type 'unsigned char *' - 503 | int user_arp_hijack(struct user_conn_info *uci, char *src_fake_mac, - | ~~~~~~^~~~~~~~~~~~ -main.c:350:62: warning: pointer targets in passing argument 3 of 'user_arp_hijack' differ in signedness [-Wpointer-sign] - 350 | retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); - | ^~~~~~~~~~~~ - | | - | unsigned char * -hunt.h:504:27: note: expected 'char *' but argument is of type 'unsigned char *' - 504 | char *dst_fake_mac, int input_mode); - | ~~~~~~^~~~~~~~~~~~ -main.c:373:38: warning: pointer targets in passing argument 1 of 'user_arp_hijack_done' differ in signedness [-Wpointer-sign] - 373 | user_arp_hijack_done(src_fake_mac, dst_fake_mac); - | ^~~~~~~~~~~~ - | | - | unsigned char * -arpspoof.c: In function 'arpspoof_test': -hunt.h:505:33: note: expected 'char *' but argument is of type 'unsigned char *' - 505 | void user_arp_hijack_done(char *src_fake_mac, char *dst_fake_mac); - | ~~~~~~^~~~~~~~~~~~ -main.c:373:52: warning: pointer targets in passing argument 2 of 'user_arp_hijack_done' differ in signedness [-Wpointer-sign] - 373 | user_arp_hijack_done(src_fake_mac, dst_fake_mac); - | ^~~~~~~~~~~~ - | | - | unsigned char * -arpspoof.c:1390:68: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] - 1390 | send_icmp_request(asi->src_addr, asi->dst_addr, asi->src_fake_mac, - | ~~~^~~~~~~~~~~~~~ - | | - | unsigned char * -hunt.h:505:53: note: expected 'char *' but argument is of type 'unsigned char *' - 505 | void user_arp_hijack_done(char *src_fake_mac, char *dst_fake_mac); - | ~~~~~~^~~~~~~~~~~~ -hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' - 698 | char *src_mac, char *dst_mac, unsigned short seq); - | ~~~~~~^~~~~~~ -arpspoof.c:1391:38: warning: pointer targets in passing argument 4 of 'send_icmp_request' differ in signedness [-Wpointer-sign] - 1391 | asi->dst_mac, 1 + i); - | ~~~^~~~~~~~~ - | | - | unsigned char * -main.c: In function 'main': -main.c:509:70: warning: backslash and newline separated by space - 509 | fprintf(stderr, "Network interface %s does not have "\ - | -hunt.h:698:45: note: expected 'char *' but argument is of type 'unsigned char *' - 698 | char *src_mac, char *dst_mac, unsigned short seq); - | ~~~~~~^~~~~~~ -sniff.c: In function 'sniff_add_item': -arpspoof.c:1397:51: warning: pointer targets in passing argument 4 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] - 1397 | asi->dst_mac, asi->src_fake_mac); - | ~~~^~~~~~~~~ - | | - | unsigned char * -sniff.c:664:25: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 664 | &src_mask, src_ports, 0, 0, NULL) < 0) - | ^~~~~~~~~ - | | - | int * -hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~ -hunt.h:700:25: note: expected 'char *' but argument is of type 'unsigned char *' - 700 | char *src_mac, char *dst_mac); - | ~~~~~~^~~~~~~ -sniff.c:664:36: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 664 | &src_mask, src_ports, 0, 0, NULL) < 0) - | ^~~~~~~~~ - | | - | int * -hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~~ -sniff.c:667:25: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 667 | &dst_mask, dst_ports, 0, 0, NULL) < 0) - | ^~~~~~~~~ - | | - | int * -hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~ -arpspoof.c:1397:65: warning: pointer targets in passing argument 5 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] - 1397 | asi->dst_mac, asi->src_fake_mac); - | ~~~^~~~~~~~~~~~~~ - | | - | unsigned char * -hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' - 700 | char *src_mac, char *dst_mac); - | ~~~~~~^~~~~~~ -sniff.c:667:36: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 667 | &dst_mask, dst_ports, 0, 0, NULL) < 0) - | ^~~~~~~~~ - | | - | int * -hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~~ -main.c: In function 'simple_hijack': -main.c:250:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 250 | fgets(cmdbuf, sizeof(cmdbuf), stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -sniff.c:705:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 705 | port_htons(src_ports); - | ^~~~~~~~~ - | | - | int * -hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' - 428 | void port_htons(unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ -menu.c: In function 'menu_prompt': -menu.c:33:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 33 | fgets(buf, buf_size, stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -sniff.c:709:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 709 | port_htons(dst_ports); - | ^~~~~~~~~ - | | - | int * -hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' - 428 | void port_htons(unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ -sniff.c: In function 'sniff_mod_item': -sniff.c:747:38: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 747 | &src_ip, &src_mask, src_ports, - | ^~~~~~~~~ - | | - | int * -hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~ -menu.c: In function 'menu_choose_char_nconn': -menu.c:426:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 426 | fgets(buf, sizeof(buf), stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -sniff.c:747:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 747 | &src_ip, &src_mask, src_ports, - | ^~~~~~~~~ - | | - | int * -hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~~ -menu.c: In function 'menu_choose_string': -menu.c:487:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 487 | fgets(buf, sizeof(buf), stdin); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -sniff.c:751:38: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 751 | &dst_ip, &dst_mask, dst_ports, - | ^~~~~~~~~ - | | - | int * -hunt.h:371:31: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~ -sniff.c:751:49: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] - 751 | &dst_ip, &dst_mask, dst_ports, - | ^~~~~~~~~ - | | - | int * -hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' - 371 | unsigned int *ret_mask, unsigned int *ret_ports, - | ~~~~~~~~~~~~~~^~~~~~~~~ -sniff.c:770:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 770 | port_htons(src_ports); - | ^~~~~~~~~ - | | - | int * -hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' - 428 | void port_htons(unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ -sniff.c:771:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] - 771 | port_htons(dst_ports); - | ^~~~~~~~~ - | | - | int * -hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' - 428 | void port_htons(unsigned int *db_ports); - | ~~~~~~~~~~~~~~^~~~~~~~ -net.c: In function 'send_tcp_packet': -net.c:85:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] - 85 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); - | ^ -rst.c: In function 'rst': -rst.c:60:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 60 | ts.src_mac = ci->dst.dst_mac; - | ^ -rst.c:61:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 61 | ts.dst_mac = ci->dst.src_mac; - | ^ -rst.c:69:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 69 | ts.src_mac = ci->src.dst_mac; - | ^ -rst.c:70:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 70 | ts.dst_mac = ci->src.src_mac; - | ^ -net.c: In function 'send_icmp_packet': -net.c:151:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] - 151 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); - | ^ -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o timer.o timer.c -rstd.c: In function 'db_item_print': -cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pktrelay.o pktrelay.c -rstd.c:228:30: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] - 228 | sprintf(buf, "%s/%d [%s]", host_lookup(dbi->src_addr, hl_mode), - | ^~ - 229 | count_mask(dbi->src_mask), buf_src_ports); - | ~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:906, - from rstd.c:10: -In function 'sprintf', - inlined from 'db_item_print' at rstd.c:228:2: -/usr/include/i386-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -net.c: In function 'send_arp_packet': -net.c:246:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] - 246 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); - | ^ -sniff.c: In function 'sniff_item_print': -sniff.c:135:35: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] - 135 | sprintf(host_buf, "%s/%d [%s]", host_lookup(si->src_addr, hl_mode), - | ^~ - 136 | count_mask(si->src_mask), buf_src_ports); - | ~~~~~~~~~~~~~ -In file included from /usr/include/stdio.h:906, - from sniff.c:12: -In function 'sprintf', - inlined from 'sniff_item_print' at sniff.c:135:2: -/usr/include/i386-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -net.c: In function 'send_packet': -net.c:274:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] - 274 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); - | ^ In file included from pktrelay.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -1404,14 +1464,6 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from timer.c:12: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | pktrelay.c: In function 'relay_add_item': pktrelay.c:270:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] 270 | &src_mask, src_ports, 0, 0, NULL) < 0) @@ -1511,26 +1563,10 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -sniff.c: In function 'sniffer_log_print': -sniff.c:236:56: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 511 [-Wformat-overflow=] - 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); - | ^~ -sniff.c:236:52: note: directive argument in the range [1, 2147483647] - 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); - | ^~~~~~~ -In function 'sprintf', - inlined from 'sniffer_log_print' at sniff.c:236:5: -/usr/include/i386-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 3 and 523 bytes into a destination of size 512 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ cc -Wl,-z,relro -Wl,-z,now -o hunt hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o rst.o menu.o hijack.o rstd.o sniff.o macdisc.o tap.o arphijack.o tty.o synchijack.o arpspoof.o hostup.o addpolicy.o options.o resolv.o timer.o pktrelay.o -lpthread make[2]: Leaving directory '/build/reproducible-path/hunt-1.5' dh_auto_build --sourcedirectory=tpserv - cd tpserv && make -j22 "INSTALL=install --strip-program=true" + cd tpserv && make -j10 "INSTALL=install --strip-program=true" make[2]: Entering directory '/build/reproducible-path/hunt-1.5/tpserv' cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -ffile-prefix-map=/build/reproducible-path/hunt-1.5/tpserv=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tpserv.o tpserv.c tpserv.c:58:13: warning: conflicting types for built-in function 'log'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] @@ -1622,12 +1658,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/10201/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/125318 and its subdirectories -I: Current time: Tue May 13 12:35:54 -12 2025 -I: pbuilder-time-stamp: 1747182954 +I: removing directory /srv/workspace/pbuilder/10201 and its subdirectories +I: Current time: Thu Apr 11 08:13:47 +14 2024 +I: pbuilder-time-stamp: 1712772827