Diff of the two buildlogs: -- --- b1/build.log 2024-05-24 00:07:29.847735858 +0000 +++ b2/build.log 2024-05-24 00:08:36.580885948 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jun 25 18:30:01 -12 2025 -I: pbuilder-time-stamp: 1750919401 +I: Current time: Fri May 24 14:07:32 +14 2024 +I: pbuilder-time-stamp: 1716509252 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -34,54 +34,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/118273/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/47708/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-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 May 24 00:07 /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/47708/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/47708/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='10b071e0979b4e6ea33303ea3d383127' - 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='118273' - PS1='# ' - PS2='> ' + INVOCATION_ID=ace1f268fee045f78f88292be4f2e5fb + 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=47708 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.MZPvnOm4/pbuilderrc_HPTn --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.MZPvnOm4/b1 --logfile b1/build.log weplab_0.1.5-7.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://213.165.73.152: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.MZPvnOm4/pbuilderrc_l5il --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.MZPvnOm4/b2 --logfile b2/build.log weplab_0.1.5-7.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://46.16.76.132:3128 I: uname -a - Linux ionos16-i386 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 24 14:06 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/118273/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 22 07:43 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/47708/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -163,7 +195,7 @@ Get: 42 http://deb.debian.org/debian unstable/main i386 libdbus-1-dev i386 1.14.10-4+b1 [260 kB] Get: 43 http://deb.debian.org/debian unstable/main i386 libpcap0.8t64 i386 1.10.4-5 [170 kB] Get: 44 http://deb.debian.org/debian unstable/main i386 libpcap0.8-dev i386 1.10.4-5 [285 kB] -Fetched 20.5 MB in 0s (65.1 MB/s) +Fetched 20.5 MB in 1s (28.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sgml-base. (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 ... 19703 files and directories currently installed.) @@ -355,7 +387,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/weplab-0.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 > ../weplab_0.1.5-7_source.changes +I: user script /srv/workspace/pbuilder/47708/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/47708/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/weplab-0.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 > ../weplab_0.1.5-7_source.changes dpkg-buildpackage: info: source package weplab dpkg-buildpackage: info: source version 0.1.5-7 dpkg-buildpackage: info: source distribution unstable @@ -432,7 +468,7 @@ config.status: creating Makefile config.status: executing depfiles commands dh_auto_build - make -j22 + make -j10 make[1]: Entering directory '/build/reproducible-path/weplab-0.1.5' gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/weplab-0.1.5=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o main.o main.c gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/weplab-0.1.5=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o analpfile.o analpfile.c @@ -445,135 +481,6 @@ gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/weplab-0.1.5=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o md5.o md5.c gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/weplab-0.1.5=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o wep.o wep.c gcc -DPACKAGE_NAME=\"weplab\" -DPACKAGE_TARNAME=\"weplab\" -DPACKAGE_VERSION=\"0.1.5\" -DPACKAGE_STRING=\"weplab\ 0.1.5\" -DPACKAGE_BUGREPORT=\"TopoLB\ -\ Jose\ Ignacio\ Sanchez\ \\" -DPACKAGE_URL=\"\" -DPACKAGE=\"weplab\" -DVERSION=\"0.1.5\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_PCAP_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TIME_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIBPCAP=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/weplab-0.1.5=. -fstack-protector-strong -Wformat -Werror=format-security -std=gnu89 -Wall -pipe -c -o attack.o attack.c -md5.c: In function 'MD5Final': -md5.c:132:26: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] - 132 | memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ - | ^ -wep.c: In function 'GetLessSizedPackets': -wep.c:294:56: warning: pointer targets in passing argument 2 of 'GetPacketBssid' differ in signedness [-Wpointer-sign] - 294 | if (GetPacketBssid(pkt,global_v.target_bssid)){ - | ~~~~~~~~^~~~~~~~~~~~~ - | | - | char * -In file included from wep.c:38: -wep.h:85:54: note: expected 'unsigned char *' but argument is of type 'char *' - 85 | int GetPacketBssid(const u_char *pkt, unsigned char *bssid); - | ~~~~~~~~~~~~~~~^~~~~ -wep.c:360:30: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] - 360 | printf("Total packets read: %u\n",totalPackets); - | ~^ ~~~~~~~~~~~~ - | | | - | | long unsigned int - | unsigned int - | %lu -analpfile.c: In function 'AnalyzePcapFile': -analpfile.c:105:44: warning: pointer targets in passing argument 2 of 'GetPacketBssid' differ in signedness [-Wpointer-sign] - 105 | if (GetPacketBssid(pkt+144,bssid)){ - | ^~~~~ - | | - | char * -heuristics.c: In function 'GuessOutputByte': -In file included from analpfile.c:33: -wep.h:85:54: note: expected 'unsigned char *' but argument is of type 'char *' - 85 | int GetPacketBssid(const u_char *pkt, unsigned char *bssid); - | ~~~~~~~~~~~~~~~^~~~~ -heuristics.c:61:10: warning: unused variable 'E' [-Wunused-variable] - 61 | u_char E, S[N]; - | ^ -analpfile.c:106:70: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] - 106 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); - | ~~~~~~~~^~~~~~~~~ -analpfile.c:106:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] - 106 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); - | ~~~~~~~~^~~~~~~~~ -analpfile.c:114:40: warning: pointer targets in passing argument 2 of 'GetPacketBssid' differ in signedness [-Wpointer-sign] - 114 | if (GetPacketBssid(pkt,bssid)){ - | ^~~~~ - | | - | char * -wep.h:85:54: note: expected 'unsigned char *' but argument is of type 'char *' - 85 | int GetPacketBssid(const u_char *pkt, unsigned char *bssid); - | ~~~~~~~~~~~~~~~^~~~~ -analpfile.c:115:71: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] - 115 | indexArray=(unsigned char) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); - | ~~~~~~~~^~~~~~~~~ -analpfile.c:115:89: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] - 115 | indexArray=(unsigned char) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); - | ~~~~~~~~^~~~~~~~~ -analpfile.c:187:54: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] - 187 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); - | ~~~~~~~~^~~~~~~~~ -analpfile.c:187:72: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] - 187 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); - | ~~~~~~~~^~~~~~~~~ -heuristics.c: In function 'CalculateSimpleHeuristics': -heuristics.c:397:108: warning: unknown conversion type character ')' in format [-Wformat=] - 397 | printf("Perhaps you should increase the default probability (--perc) to a higher value (default 70%), or capture more packets.\n"); - | ^ -attack.c: In function 'AttackAndEvaluate': -attack.c:88:23: warning: variable 'foundWeak' set but not used [-Wunused-but-set-variable] - 88 | unsigned char foundWeak[NUMBER_ATTACKS]; - | ^~~~~~~~~ -heuristics.c:394:17: warning: 'GuessOutputByte' accessing 17408 bytes in a region of size 13312 [-Wstringop-overflow=] - 394 | GuessOutputByte(i, global_v.debugKey, packets, controlPackets, votes); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -heuristics.c:394:17: note: referencing argument 5 of type 'unsigned int[17][256]' -heuristics.c:57:6: note: in a call to function 'GuessOutputByte' - 57 | void GuessOutputByte(int keyByte, u_char *sKey, t_StoredPacketsIV *packets, t_storedPacket **controlPackets, unsigned int votes[17][256]) - | ^~~~~~~~~~~~~~~ -main.c: In function 'ReadHexByteArray': -main.c:138:15: warning: unused variable 'j' [-Wunused-variable] - 138 | int i,j; - | ^ -main.c: In function 'main': -main.c:303:45: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] - 303 | saux=optarg; - | ^ -main.c:307:58: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] - 307 | if (atoi(saux)>NUMBER_ATTACKS || !atoi(saux)) QuitParameterError("attacks to be launched must be defined as positive numbers from 1 to 5 splitted by commas and no spaces"); - | ^~~~ - | | - | unsigned char * -In file included from /usr/include/features.h:502, - from /usr/include/i386-linux-gnu/bits/libc-header-start.h:33, - from /usr/include/stdio.h:27, - from main.c:28: -/usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'unsigned char *' - 481 | __NTH (atoi (const char *__nptr)) - | ^~~~~ -main.c:307:88: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] - 307 | if (atoi(saux)>NUMBER_ATTACKS || !atoi(saux)) QuitParameterError("attacks to be launched must be defined as positive numbers from 1 to 5 splitted by commas and no spaces"); - | ^~~~ - | | - | unsigned char * -/usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'unsigned char *' - 481 | __NTH (atoi (const char *__nptr)) - | ^~~~~ -main.c:308:87: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] - 308 | defaultAttacks[STABILITY_LEVELS][atoi(saux)-1]=1; - | ^~~~ - | | - | unsigned char * -/usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'unsigned char *' - 481 | __NTH (atoi (const char *__nptr)) - | ^~~~~ -main.c:310:53: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] - 310 | saux=(&optarg[i])+1; - | ^ -main.c:334:79: warning: pointer targets in passing argument 1 of 'ReadHexByteArray' differ in signedness [-Wpointer-sign] - 334 | global_v.useDebugKey=ReadHexByteArray(optarg,global_v.debugKey,strlen(optarg)+1); - | ^~~~~~ - | | - | char * -main.c:137:37: note: expected 'unsigned char *' but argument is of type 'char *' - 137 | int ReadHexByteArray(unsigned char *asciiByteArray, unsigned char *destination, int asciiByteArrayMaxSize){ - | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ -main.c:196:17: warning: unused variable 'h2' [-Wunused-variable] - 196 | int h1, h2; - | ^~ -main.c:196:13: warning: unused variable 'h1' [-Wunused-variable] - 196 | int h1, h2; - | ^~ dictionary.c: In function 'GetNextWord': dictionary.c:143:27: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] 143 | while (((rv=fgets(word, sz-1, wordfile))!=NULL)&&((word[0]=='\r')||(word[0]=='\n'))) { @@ -640,6 +547,135 @@ dictionary.c:104:25: note: expected 'char *' but argument is of type 'unsigned char *' 104 | void wep_keygen40(char *str, u_char *keys){ | ~~~~~~^~~ +main.c: In function 'ReadHexByteArray': +main.c:138:15: warning: unused variable 'j' [-Wunused-variable] + 138 | int i,j; + | ^ +md5.c: In function 'MD5Final': +md5.c:132:26: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] + 132 | memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + | ^ +main.c: In function 'main': +main.c:303:45: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] + 303 | saux=optarg; + | ^ +main.c:307:58: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] + 307 | if (atoi(saux)>NUMBER_ATTACKS || !atoi(saux)) QuitParameterError("attacks to be launched must be defined as positive numbers from 1 to 5 splitted by commas and no spaces"); + | ^~~~ + | | + | unsigned char * +In file included from /usr/include/features.h:502, + from /usr/include/i386-linux-gnu/bits/libc-header-start.h:33, + from /usr/include/stdio.h:27, + from main.c:28: +/usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'unsigned char *' + 481 | __NTH (atoi (const char *__nptr)) + | ^~~~~ +main.c:307:88: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] + 307 | if (atoi(saux)>NUMBER_ATTACKS || !atoi(saux)) QuitParameterError("attacks to be launched must be defined as positive numbers from 1 to 5 splitted by commas and no spaces"); + | ^~~~ + | | + | unsigned char * +/usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'unsigned char *' + 481 | __NTH (atoi (const char *__nptr)) + | ^~~~~ +main.c:308:87: warning: pointer targets in passing argument 1 of 'atoi' differ in signedness [-Wpointer-sign] + 308 | defaultAttacks[STABILITY_LEVELS][atoi(saux)-1]=1; + | ^~~~ + | | + | unsigned char * +/usr/include/stdlib.h:481:1: note: expected 'const char *' but argument is of type 'unsigned char *' + 481 | __NTH (atoi (const char *__nptr)) + | ^~~~~ +main.c:310:53: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] + 310 | saux=(&optarg[i])+1; + | ^ +main.c:334:79: warning: pointer targets in passing argument 1 of 'ReadHexByteArray' differ in signedness [-Wpointer-sign] + 334 | global_v.useDebugKey=ReadHexByteArray(optarg,global_v.debugKey,strlen(optarg)+1); + | ^~~~~~ + | | + | char * +main.c:137:37: note: expected 'unsigned char *' but argument is of type 'char *' + 137 | int ReadHexByteArray(unsigned char *asciiByteArray, unsigned char *destination, int asciiByteArrayMaxSize){ + | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ +main.c:196:17: warning: unused variable 'h2' [-Wunused-variable] + 196 | int h1, h2; + | ^~ +main.c:196:13: warning: unused variable 'h1' [-Wunused-variable] + 196 | int h1, h2; + | ^~ +analpfile.c: In function 'AnalyzePcapFile': +analpfile.c:105:44: warning: pointer targets in passing argument 2 of 'GetPacketBssid' differ in signedness [-Wpointer-sign] + 105 | if (GetPacketBssid(pkt+144,bssid)){ + | ^~~~~ + | | + | char * +In file included from analpfile.c:33: +wep.h:85:54: note: expected 'unsigned char *' but argument is of type 'char *' + 85 | int GetPacketBssid(const u_char *pkt, unsigned char *bssid); + | ~~~~~~~~~~~~~~~^~~~~ +analpfile.c:106:70: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] + 106 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); + | ~~~~~~~~^~~~~~~~~ +analpfile.c:106:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] + 106 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); + | ~~~~~~~~^~~~~~~~~ +analpfile.c:114:40: warning: pointer targets in passing argument 2 of 'GetPacketBssid' differ in signedness [-Wpointer-sign] + 114 | if (GetPacketBssid(pkt,bssid)){ + | ^~~~~ + | | + | char * +wep.h:85:54: note: expected 'unsigned char *' but argument is of type 'char *' + 85 | int GetPacketBssid(const u_char *pkt, unsigned char *bssid); + | ~~~~~~~~~~~~~~~^~~~~ +analpfile.c:115:71: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] + 115 | indexArray=(unsigned char) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); + | ~~~~~~~~^~~~~~~~~ +analpfile.c:115:89: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] + 115 | indexArray=(unsigned char) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); + | ~~~~~~~~^~~~~~~~~ +analpfile.c:187:54: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] + 187 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); + | ~~~~~~~~^~~~~~~~~ +analpfile.c:187:72: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] + 187 | indexArray=(unsigned int) ((bssid[0]^bssid[1]+bssid[2]^bssid[3]+bssid[4]^bssid[5])&0x00000FFF); + | ~~~~~~~~^~~~~~~~~ +wep.c: In function 'GetLessSizedPackets': +wep.c:294:56: warning: pointer targets in passing argument 2 of 'GetPacketBssid' differ in signedness [-Wpointer-sign] + 294 | if (GetPacketBssid(pkt,global_v.target_bssid)){ + | ~~~~~~~~^~~~~~~~~~~~~ + | | + | char * +In file included from wep.c:38: +wep.h:85:54: note: expected 'unsigned char *' but argument is of type 'char *' + 85 | int GetPacketBssid(const u_char *pkt, unsigned char *bssid); + | ~~~~~~~~~~~~~~~^~~~~ +wep.c:360:30: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] + 360 | printf("Total packets read: %u\n",totalPackets); + | ~^ ~~~~~~~~~~~~ + | | | + | | long unsigned int + | unsigned int + | %lu +heuristics.c: In function 'GuessOutputByte': +heuristics.c:61:10: warning: unused variable 'E' [-Wunused-variable] + 61 | u_char E, S[N]; + | ^ +heuristics.c: In function 'CalculateSimpleHeuristics': +heuristics.c:397:108: warning: unknown conversion type character ')' in format [-Wformat=] + 397 | printf("Perhaps you should increase the default probability (--perc) to a higher value (default 70%), or capture more packets.\n"); + | ^ +attack.c: In function 'AttackAndEvaluate': +attack.c:88:23: warning: variable 'foundWeak' set but not used [-Wunused-but-set-variable] + 88 | unsigned char foundWeak[NUMBER_ATTACKS]; + | ^~~~~~~~~ +heuristics.c:394:17: warning: 'GuessOutputByte' accessing 17408 bytes in a region of size 13312 [-Wstringop-overflow=] + 394 | GuessOutputByte(i, global_v.debugKey, packets, controlPackets, votes); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +heuristics.c:394:17: note: referencing argument 5 of type 'unsigned int[17][256]' +heuristics.c:57:6: note: in a call to function 'GuessOutputByte' + 57 | void GuessOutputByte(int keyByte, u_char *sKey, t_StoredPacketsIV *packets, t_storedPacket **controlPackets, unsigned int votes[17][256]) + | ^~~~~~~~~~~~~~~ bruteforce.c: In function 'bruteforce': bruteforce.c:170:42: warning: 'mpid' may be used uninitialized [-Wmaybe-uninitialized] 170 | for (i=0; i