<86>Jun 16 00:36:11 userdel[2359035]: delete user 'rooter' <86>Jun 16 00:36:11 userdel[2359035]: removed group 'rooter' owned by 'rooter' <86>Jun 16 00:36:11 userdel[2359035]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 16 00:36:11 groupadd[2359062]: group added to /etc/group: name=rooter, GID=1841 <86>Jun 16 00:36:11 groupadd[2359062]: group added to /etc/gshadow: name=rooter <86>Jun 16 00:36:11 groupadd[2359062]: new group: name=rooter, GID=1841 <86>Jun 16 00:36:11 useradd[2359081]: new user: name=rooter, UID=1841, GID=1841, home=/root, shell=/bin/bash <86>Jun 16 00:36:11 userdel[2359112]: delete user 'builder' <86>Jun 16 00:36:11 userdel[2359112]: removed group 'builder' owned by 'builder' <86>Jun 16 00:36:11 userdel[2359112]: removed shadow group 'builder' owned by 'builder' <86>Jun 16 00:36:11 groupadd[2359139]: group added to /etc/group: name=builder, GID=1842 <86>Jun 16 00:36:11 groupadd[2359139]: group added to /etc/gshadow: name=builder <86>Jun 16 00:36:11 groupadd[2359139]: new group: name=builder, GID=1842 <86>Jun 16 00:36:11 useradd[2359159]: new user: name=builder, UID=1842, GID=1842, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/prescanic-0.8.1-alt1.src.rpm: The use of such a license name is ambiguous: GPL <13>Jun 16 00:36:14 rpmi: liblz4-1:1.9.4-alt1 p10+350711.100.1.1 1718009144 installed <13>Jun 16 00:36:14 rpmi: libsystemd-1:249.17-alt2 p10+340218.100.1.1 1707505676 installed <13>Jun 16 00:36:14 rpmi: libdbus-1.14.10-alt1 p10+342527.100.1.1 1710230133 installed <13>Jun 16 00:36:14 rpmi: libpcap0.8-2:1.9.1-alt2 sisyphus+278380.100.1.1 1626093290 installed <13>Jun 16 00:36:14 rpmi: libp11-kit-0.24.1-alt1 p10+305061.100.3.1 1660573397 installed <13>Jun 16 00:36:14 rpmi: libtasn1-4.19.0-alt1 p10+309071.100.2.1 1668522760 installed <13>Jun 16 00:36:14 rpmi: rpm-macros-alternatives-0.5.2-alt1 p10+309129.100.2.1 1668066636 installed <13>Jun 16 00:36:14 rpmi: alternatives-0.5.2-alt1 p10+309129.100.2.1 1668066636 installed <13>Jun 16 00:36:14 rpmi: ca-certificates-2022.09.15-alt1 p10+308004.100.2.1 1665748370 installed <13>Jun 16 00:36:14 rpmi: ca-trust-0.1.6-alt1 p10+344774.100.1.1 1712685728 installed <13>Jun 16 00:36:14 rpmi: p11-kit-trust-0.24.1-alt1 p10+305061.100.3.1 1660573397 installed <13>Jun 16 00:36:14 rpmi: libcrypto1.1-1.1.1w-alt0.p10.1 p10+330586.100.4.1 1697560982 installed <13>Jun 16 00:36:14 rpmi: libssl1.1-1.1.1w-alt0.p10.1 p10+330586.100.4.1 1697560982 installed <13>Jun 16 00:36:14 rpmi: libmysqlclient21-8.0.36-alt1 p10+338829.100.2.1 1706799139 installed <13>Jun 16 00:36:14 rpmi: libmysqlclient21-devel-8.0.36-alt1 p10+338829.100.2.1 1706799139 installed <13>Jun 16 00:36:14 rpmi: libpcap-devel-2:1.9.1-alt2 sisyphus+278380.100.1.1 1626093290 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/prescanic-0.8.1-alt1.nosrc.rpm (w1.gzdio) Installing prescanic-0.8.1-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.29501 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf prescanic-0.8.1 + echo 'Source #0 (prescanic-0.8.1.tar.bz2):' Source #0 (prescanic-0.8.1.tar.bz2): + /bin/bzip2 -dc /usr/src/RPM/SOURCES/prescanic-0.8.1.tar.bz2 + /bin/tar -xf - + cd prescanic-0.8.1 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (prescanic-0.8-alt-makefile.patch):' Patch #0 (prescanic-0.8-alt-makefile.patch): + /usr/bin/patch -p2 patching file Makefile + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.29501 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd prescanic-0.8.1 + make -j16 make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o rpc.o rpc.c make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o tool.o tool.c make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o victim.o victim.c victim.c: In function 'add_victim': victim.c:13:27: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 13 | victim = (struct host*) Malloc(sizeof(struct host)); | ^~~~~~ | valloc victim.c:13:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 13 | victim = (struct host*) Malloc(sizeof(struct host)); | ^ victim.c:41:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 41 | victim->host = (char*) Malloc(strlen(hostname)+1); | ^ victim.c: In function 'del_victim': victim.c:51:3: warning: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 51 | Free(victim->host); | ^~~~ | free make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o sniff.o sniff.c sniff.c: In function 'sniff': sniff.c:18:16: warning: implicit declaration of function 'next_packet'; did you mean 'net_write_packet'? [-Wimplicit-function-declaration] 18 | ptr=(char*)next_packet(); | ^~~~~~~~~~~ | net_write_packet sniff.c:18:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 18 | ptr=(char*)next_packet(); | ^ sniff.c:59:17: warning: implicit declaration of function 'init_osdetect' [-Wimplicit-function-declaration] 59 | init_osdetect(victim); | ^~~~~~~~~~~~~ sniff.c:79:11: warning: implicit declaration of function 'handle_response' [-Wimplicit-function-declaration] 79 | handle_response(victim,0,tcp); | ^~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o prescan.o prescan.c prescan.c: In function 'prescan': prescan.c:10:3: warning: implicit declaration of function 'forward_lookup' [-Wimplicit-function-declaration] 10 | forward_lookup(victim); | ^~~~~~~~~~~~~~ prescan.c:11:24: warning: implicit declaration of function 'reverse_lookup' [-Wimplicit-function-declaration] 11 | if(!config.r_lookup) reverse_lookup(victim); | ^~~~~~~~~~~~~~ prescan.c:20:10: warning: implicit declaration of function 'Inet_ntoa'; did you mean 'inet_ntoa'? [-Wimplicit-function-declaration] 20 | Inet_ntoa(victim->ip), | ^~~~~~~~~ | inet_ntoa prescan.c:19:22: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 19 | printf("SCANNING: %s (%s)\n", | ~^ | | | char * | %d 20 | Inet_ntoa(victim->ip), | ~~~~~~~~~~~~~~~~~~~~~ | | | int prescan.c:27:8: warning: implicit declaration of function 'send_icmp_echo' [-Wimplicit-function-declaration] 27 | if(send_icmp_echo(victim) < 0) | ^~~~~~~~~~~~~~ prescan.c:32:5: warning: implicit declaration of function 'add_tcp' [-Wimplicit-function-declaration] 32 | add_tcp((SYN_SOURCE+i),config.port[i],victim); | ^~~~~~~ prescan.c:42:10: warning: implicit declaration of function 'tcp_check' [-Wimplicit-function-declaration] 42 | if(tcp_check(victim)) | ^~~~~~~~~ prescan.c:46:10: warning: implicit declaration of function 'dns_check' [-Wimplicit-function-declaration] 46 | if(dns_check(victim)) | ^~~~~~~~~ prescan.c:51:10: warning: implicit declaration of function 'sniff' [-Wimplicit-function-declaration] 51 | if(sniff(victim)) | ^~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o main.o main.c main.c: In function 'main': main.c:21:3: warning: implicit declaration of function 'init' [-Wimplicit-function-declaration] 21 | init(argc,argv); | ^~~~ main.c:26:29: warning: implicit declaration of function 'add_victim' [-Wimplicit-function-declaration] 26 | victim = (struct host*) add_victim(config.single_host); | ^~~~~~~~~~ main.c:26:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 26 | victim = (struct host*) add_victim(config.single_host); | ^ main.c:27:22: warning: implicit declaration of function 'prescan'; did you mean 'pread'? [-Wimplicit-function-declaration] 27 | prescan_retval = prescan(victim); | ^~~~~~~ | pread main.c:30:7: warning: implicit declaration of function 'determine_os' [-Wimplicit-function-declaration] 30 | determine_os(victim); /* determine OS from fingerprint responses */ | ^~~~~~~~~~~~ main.c:31:5: warning: implicit declaration of function 'output' [-Wimplicit-function-declaration] 31 | output(victim); | ^~~~~~ main.c:32:5: warning: implicit declaration of function 'del_victim' [-Wimplicit-function-declaration] 32 | del_victim(victim); | ^~~~~~~~~~ main.c:62:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 62 | victim = (struct host*) add_victim(string); | ^ main.c:87:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 87 | victim = (struct host*) add_victim(string); | ^ main.c:105:13: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 105 | wait(NULL); | ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o pcap.o pcap.c pcap.c: In function 'init_pcap': pcap.c:18:5: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 18 | config.device = pcap_lookupdev(errbuffer); | ^~~~~~ In file included from /usr/include/pcap.h:43, from prescan.h:4, from pcap.c:1: /usr/include/pcap/pcap.h:328:16: note: declared here 328 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o tcp.o tcp.c tcp.c: In function 'tcp_check': tcp.c:18:34: warning: implicit declaration of function 'sock_status'; did you mean 'si_status'? [-Wimplicit-function-declaration] 18 | victim->tcp_current->state = sock_status(victim->tcp_current->sock); | ^~~~~~~~~~~ | si_status tcp.c:27:7: warning: implicit declaration of function 'talk_with_protocol' [-Wimplicit-function-declaration] 27 | talk_with_protocol(victim); | ^~~~~~~~~~~~~~~~~~ tcp.c:33:9: warning: implicit declaration of function 'init_osdetect' [-Wimplicit-function-declaration] 33 | init_osdetect(victim); | ^~~~~~~~~~~~~ tcp.c: In function 'add_tcp': tcp.c:69:51: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 69 | victim->tcp_current = (struct tcp_connection *) Malloc(sizeof(struct tcp_connection)); | ^~~~~~ | valloc tcp.c:69:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 69 | victim->tcp_current = (struct tcp_connection *) Malloc(sizeof(struct tcp_connection)); | ^ tcp.c:81:5: warning: implicit declaration of function 'send_syn' [-Wimplicit-function-declaration] 81 | send_syn(src_port,port,victim); | ^~~~~~~~ tcp.c:83:33: warning: implicit declaration of function 'nonblock_tcp_connect' [-Wimplicit-function-declaration] 83 | victim->tcp_current->sock = nonblock_tcp_connect(victim->ip,victim->tcp_current->port); | ^~~~~~~~~~~~~~~~~~~~ tcp.c: In function 'del_tcp': tcp.c:102:3: warning: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 102 | Free(tcp_current); | ^~~~ | free make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o osdetect.o osdetect.c osdetect.c: In function 'init_osdetect': osdetect.c:12:56: warning: implicit declaration of function 'Inet_ntoa'; did you mean 'inet_ntoa'? [-Wimplicit-function-declaration] 12 | printf("init_osdetect() running. (LOCAL IP: %s)\n",Inet_ntoa(config.local_ip)); | ^~~~~~~~~ | inet_ntoa osdetect.c:12:50: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] 12 | printf("init_osdetect() running. (LOCAL IP: %s)\n",Inet_ntoa(config.local_ip)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | int | char * | %d osdetect.c:16:3: warning: implicit declaration of function 'send_tcp_stack_fingerprint' [-Wimplicit-function-declaration] 16 | send_tcp_stack_fingerprint(victim,PORT_1,1,1,0,0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ osdetect.c: In function 'determine_os': osdetect.c:117:27: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 117 | victim->os = (char *) Malloc(strlen(ptr)); | ^~~~~~ | valloc osdetect.c:117:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 117 | victim->os = (char *) Malloc(strlen(ptr)); | ^ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o init.o init.c init.c: In function 'init': init.c:30:38: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 30 | config.single_host = (char*) Malloc(strlen(optarg)+1); | ^~~~~~ | valloc init.c:30:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 30 | config.single_host = (char*) Malloc(strlen(optarg)+1); | ^ init.c:35:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 35 | config.host_file = (char*) Malloc(strlen(optarg) + 1); | ^ init.c:48:9: warning: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 48 | Free(config.device); | ^~~~ | free init.c:49:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 49 | config.device = (char*) Malloc(strlen(optarg) + 1); | ^ init.c:84:3: warning: implicit declaration of function 'db_load_config' [-Wimplicit-function-declaration] 84 | db_load_config(); | ^~~~~~~~~~~~~~ init.c:87:23: warning: implicit declaration of function 'db_setup' [-Wimplicit-function-declaration] 87 | if(config.db_setup) db_setup(); | ^~~~~~~~ init.c:98:5: warning: implicit declaration of function 'init_pcap' [-Wimplicit-function-declaration] 98 | init_pcap(); | ^~~~~~~~~ init.c:102:23: warning: implicit declaration of function 'get_device_ip' [-Wimplicit-function-declaration] 102 | config.local_ip = get_device_ip(config.device); | ^~~~~~~~~~~~~ init.c: In function 'set_defaults': init.c:137:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 137 | config.device = (char*) Malloc(8); | ^ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o db.o db.c db.c: In function 'db_load_config': db.c:86:7: warning: implicit declaration of function 'strip_line_feed' [-Wimplicit-function-declaration] 86 | strip_line_feed(ptr); | ^~~~~~~~~~~~~~~ db.c:92:33: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 92 | config.db_server = (char*)Malloc(strlen(ptr) +1); | ^~~~~~ | valloc db.c:92:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 92 | config.db_server = (char*)Malloc(strlen(ptr) +1); | ^ db.c:104:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 104 | config.db_database = (char*)Malloc(strlen(ptr) +1); | ^ db.c:116:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 116 | config.db_user = (char*)Malloc(strlen(ptr) +1); | ^ db.c:128:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 128 | config.db_pass = (char*)Malloc(strlen(ptr) +1); | ^ In file included from /usr/include/string.h:532, from prescan.h:3, from db.c:1: In function 'strncpy', inlined from 'db_load_config' at db.c:129:7: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ db.c: In function 'db_load_config': db.c:129:7: note: length computed here 129 | strncpy(config.db_pass,ptr,strlen(ptr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:532, from prescan.h:3, from db.c:1: In function 'strncpy', inlined from 'db_load_config' at db.c:117:7: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ db.c: In function 'db_load_config': db.c:117:7: note: length computed here 117 | strncpy(config.db_user,ptr,strlen(ptr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:532, from prescan.h:3, from db.c:1: In function 'strncpy', inlined from 'db_load_config' at db.c:105:7: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ db.c: In function 'db_load_config': db.c:105:7: note: length computed here 105 | strncpy(config.db_database,ptr,strlen(ptr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:532, from prescan.h:3, from db.c:1: In function 'strncpy', inlined from 'db_load_config' at db.c:93:7: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ db.c: In function 'db_load_config': db.c:93:7: note: length computed here 93 | strncpy(config.db_server,ptr,strlen(ptr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o dns.o dns.c dns.c: In function 'dns_connect': dns.c:67:22: warning: implicit declaration of function 'nonblock_udp_connect' [-Wimplicit-function-declaration] 67 | victim->udp_sock = nonblock_udp_connect(victim->ip,53); | ^~~~~~~~~~~~~~~~~~~~ dns.c: In function 'dns_check': dns.c:76:12: warning: implicit declaration of function 'sock_status'; did you mean 'si_status'? [-Wimplicit-function-declaration] 76 | retval = sock_status(victim->udp_sock); | ^~~~~~~~~~~ | si_status dns.c:82:22: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 82 | packet = (char*) Malloc(512); | ^~~~~~ | valloc dns.c:82:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 82 | packet = (char*) Malloc(512); | ^ dns.c:85:5: warning: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 85 | Free(packet); | ^~~~ | free dns.c:91:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 91 | buf = (char*) Malloc(retval+1); | ^ dns.c:94:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 94 | packet = (char*) Malloc(512); | ^ dns.c:103:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 103 | buf = (char*) Malloc(retval+1); | ^ dns.c: In function 'find_dns_reply': dns.c:152:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 152 | victim->bind_version = (char*) Malloc(strlen(verstr)+1); | ^ dns.c: In function 'make_keypkt': dns.c:60:4: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 60 | write(sock,pktbuf,pktlen); | ^~~~~~~~~~~~~~~~~~~~~~~~~ dns.c: In function 'dns_check': dns.c:93:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 93 | read(victim->udp_sock,buf,retval); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dns.c:105:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 105 | read(victim->udp_sock,buf,retval); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o hnet.o hnet.c hnet.c: In function 'send_icmp_echo': hnet.c:38:12: warning: implicit declaration of function 'send_raw_packet' [-Wimplicit-function-declaration] 38 | retval = send_raw_packet(&ip_header,NULL,NULL,&icmp_header,&data,PING_SIZE,0,1); | ^~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o protocol.o protocol.c protocol.c: In function 'talk_with_protocol': protocol.c:28:5: warning: implicit declaration of function 'tcp_close'; did you mean 'pcap_close'? [-Wimplicit-function-declaration] 28 | tcp_close(victim->tcp_current); | ^~~~~~~~~ | pcap_close protocol.c: In function 'talk_dns': protocol.c:37:3: warning: implicit declaration of function 'dns_connect'; did you mean 'connect'? [-Wimplicit-function-declaration] 37 | dns_connect(victim); | ^~~~~~~~~~~ | connect protocol.c: In function 'talk_ftp': protocol.c:49:16: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 49 | ptr = (char*)Malloc(victim->tcp_current->datalen + 1); | ^~~~~~ | valloc protocol.c:49:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 49 | ptr = (char*)Malloc(victim->tcp_current->datalen + 1); | ^ protocol.c:50:12: warning: implicit declaration of function 'readline_from_sock' [-Wimplicit-function-declaration] 50 | retval = readline_from_sock(victim->tcp_current->sock,ptr,victim->tcp_current->datalen); | ^~~~~~~~~~~~~~~~~~ protocol.c:58:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 58 | victim->ftp_banner = (char*) Malloc(strlen(ptr) + 1); | ^ protocol.c:69:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 69 | victim->ftp_syst = (char*) Malloc(strlen(ptr) + 1); | ^ protocol.c: In function 'talk_imap': protocol.c:103:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 103 | victim->imap_banner = (char*) Malloc(victim->tcp_current->datalen + 1); | ^ protocol.c: In function 'talk_smtp': protocol.c:123:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 123 | victim->smtp_banner = (char*) Malloc(victim->tcp_current->datalen + 1); | ^ protocol.c: In function 'talk_pop3': protocol.c:142:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 142 | victim->pop3_banner = (char*) Malloc(victim->tcp_current->datalen + 1); | ^ protocol.c: In function 'talk_telnet': protocol.c:163:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 163 | string = (char*) Malloc(victim->tcp_current->datalen + 1); | ^ protocol.c:190:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 190 | victim->telnet_banner = (char*) Malloc(telnet_banner_len + 1); | ^ protocol.c: In function 'talk_http': protocol.c:238:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 238 | line = (char*) Malloc(256); | ^ protocol.c:248:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 248 | victim->http_server = (char *) Malloc(strlen(ptr) + 1); | ^ protocol.c: In function 'talk_ftp': protocol.c:62:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 62 | write(victim->tcp_current->sock,FTP_SYST,strlen(FTP_SYST)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol.c:64:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 64 | write(victim->tcp_current->sock,FTP_USER,strlen(FTP_USER)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol.c:74:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 74 | write(victim->tcp_current->sock,FTP_PASS,strlen(FTP_PASS)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol.c: In function 'talk_telnet': protocol.c:165:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 165 | read(victim->tcp_current->sock,string,victim->tcp_current->datalen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol.c:179:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 179 | write (victim->tcp_current->sock, output, 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol.c: In function 'talk_http': protocol.c:233:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 233 | write(victim->tcp_current->sock,HTTP_REQUEST,strlen(HTTP_REQUEST)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:532, from prescan.h:3, from protocol.c:1: In function 'strncpy', inlined from 'talk_telnet' at protocol.c:199:9: /usr/include/bits/string_fortified.h:91:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol.c: In function 'talk_telnet': protocol.c:199:9: note: length computed here 199 | strncpy(ptr2,ptr,strlen(ptr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o output.o output.c output.c: In function 'output': output.c:17:38: warning: implicit declaration of function 'Inet_ntoa'; did you mean 'inet_ntoa'? [-Wimplicit-function-declaration] 17 | sprintf(chr_local_ip,"%s\0",(char*)Inet_ntoa(config.local_ip)); | ^~~~~~~~~ | inet_ntoa output.c:17:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 17 | sprintf(chr_local_ip,"%s\0",(char*)Inet_ntoa(config.local_ip)); | ^ output.c:18:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 18 | sprintf(chr_victim_ip,"%s\0",(char*)Inet_ntoa(victim->ip)); | ^ output.c:26:3: warning: implicit declaration of function 'db_connect'; did you mean 'connect'? [-Wimplicit-function-declaration] 26 | db_connect(); | ^~~~~~~~~~ | connect output.c:30:3: warning: implicit declaration of function 'send_query' [-Wimplicit-function-declaration] 30 | send_query(query_string); | ^~~~~~~~~~ output.c:122:3: warning: implicit declaration of function 'db_disconnect' [-Wimplicit-function-declaration] 122 | db_disconnect(); | ^~~~~~~~~~~~~ output.c:136:25: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 136 | file_name = (char*) Malloc(16 + strlen(EXT)); | ^~~~~~ | valloc output.c:136:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 136 | file_name = (char*) Malloc(16 + strlen(EXT)); | ^ output.c:153:32: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 153 | fprintf(output_f,"[> HOST:\t%s (%s)\n",Inet_ntoa(victim->ip),(victim->name ? victim->name : "DNS NAME UNKNOWN")); | ~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | char * int | %d make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -O2 -g -ggdb -I /usr/include/mysql/ -c -o net.o net.c net.c: In function 'send_raw_packet': net.c:44:27: warning: implicit declaration of function 'Malloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] 44 | packet = (char *) Malloc(packetsize + 1); /* 3 padding.. */ | ^~~~~~ | valloc net.c:44:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 44 | packet = (char *) Malloc(packetsize + 1); /* 3 padding.. */ | ^ net.c:106:62: warning: passing argument 5 of 'sendto' from incompatible pointer type [-Wincompatible-pointer-types] 106 | if(sendto(rawsock, packet, packetsize, sendto_flags, &sin, sizeof(sin)) < 0) | ^~~~ | | | struct sockaddr_in * In file included from /usr/include/pcap/socket.h:67, from /usr/include/pcap/pcap.h:87, from /usr/include/pcap.h:43, from prescan.h:4, from net.c:1: /usr/include/sys/socket.h:153:44: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' 153 | int __flags, __CONST_SOCKADDR_ARG __addr, | ^ net.c: In function 'reverse_lookup': net.c:187:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 187 | victim->name = (char*) Malloc(strlen(host->h_name) +1); | ^ make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' gcc -o prescanic -O2 -g -ggdb -I /usr/include/mysql/ main.o prescan.o db.o init.o protocol.o osdetect.o output.o tcp.o pcap.o net.o tool.o victim.o rpc.o sniff.o hnet.o dns.o -lpcap -lmysqlclient make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.29501 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/prescanic-buildroot + : + /bin/rm -rf -- /usr/src/tmp/prescanic-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd prescanic-0.8.1 + mkdir -p /usr/src/tmp/prescanic-buildroot/usr/bin + make 'INSTALL=/usr/libexec/rpm-build/install -p' DESTDIR=/usr/src/tmp/prescanic-buildroot/usr/bin/ install make: Entering directory '/usr/src/RPM/BUILD/prescanic-0.8.1' install -m 775 prescanic /usr/src/tmp/prescanic-buildroot/usr/bin/prescanic make: Leaving directory '/usr/src/RPM/BUILD/prescanic-0.8.1' + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/prescanic-buildroot (auto) mode of 'usr/bin/prescanic' changed from 0775 (rwxrwxr-x) to 0755 (rwxr-xr-x) Verifying and fixing files in /usr/src/tmp/prescanic-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/prescanic-buildroot/ (default) Compressing files in /usr/src/tmp/prescanic-buildroot (auto) Verifying ELF objects in /usr/src/tmp/prescanic-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Processing files: prescanic-0.8.1-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.34089 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd prescanic-0.8.1 + DOCDIR=/usr/src/tmp/prescanic-buildroot/usr/share/doc/prescanic-0.8.1 + export DOCDIR + rm -rf /usr/src/tmp/prescanic-buildroot/usr/share/doc/prescanic-0.8.1 + /bin/mkdir -p /usr/src/tmp/prescanic-buildroot/usr/share/doc/prescanic-0.8.1 + cp -prL PROJECT README TODO /usr/src/tmp/prescanic-buildroot/usr/share/doc/prescanic-0.8.1 + chmod -R go-w /usr/src/tmp/prescanic-buildroot/usr/share/doc/prescanic-0.8.1 + chmod -R a+rX /usr/src/tmp/prescanic-buildroot/usr/share/doc/prescanic-0.8.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7jgS6k find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.f9rlfj find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: /lib64/ld-linux-x86-64.so.2, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.15)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libmysqlclient.so.21()(64bit) >= set:lhYE0DGQezS9SdtwbuXk8Nquhq, libmysqlclient.so.21(libmysqlclient_21.0)(64bit), libpcap.so.0.8()(64bit) >= set:kgzkeZ5Zm3AvZmoGP1JpxtxUSh, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.yv8ptn Creating prescanic-debuginfo package Processing files: prescanic-debuginfo-0.8.1-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.1QnW9k find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.j3drxm find-requires: running scripts (debuginfo) Requires: prescanic = 0.8.1-alt1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libc.so.6), debug64(libmysqlclient.so.21), debug64(libpcap.so.0.8) Adding to prescanic-debuginfo a strict dependency on prescanic Wrote: /usr/src/RPM/RPMS/x86_64/prescanic-0.8.1-alt1.x86_64.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/x86_64/prescanic-debuginfo-0.8.1-alt1.x86_64.rpm (w2.lzdio) 1.66user 2.08system 0:06.09elapsed 61%CPU (0avgtext+0avgdata 30600maxresident)k 0inputs+0outputs (0major+239923minor)pagefaults 0swaps /.out/prescanic-0.8.1-alt1.x86_64.rpm: The use of such a license name is ambiguous: GPL /.out/prescanic-debuginfo-0.8.1-alt1.x86_64.rpm: The use of such a license name is ambiguous: GPL 3.28user 2.96system 0:16.08elapsed 38%CPU (0avgtext+0avgdata 128920maxresident)k 744inputs+0outputs (0major+217635minor)pagefaults 0swaps --- prescanic-0.8.1-alt1.x86_64.rpm.repo 2019-03-29 09:20:36.000000000 +0000 +++ prescanic-0.8.1-alt1.x86_64.rpm.hasher 2024-06-16 00:36:23.828469227 +0000 @@ -12,3 +12,3 @@ Requires: libc.so.6(GLIBC_2.4)(64bit) -Requires: libmysqlclient.so.21()(64bit) >= set:kgMz2DJOFgrWU2I5FTQqDUrW0 +Requires: libmysqlclient.so.21()(64bit) >= set:lhYE0DGQezS9SdtwbuXk8Nquhq Requires: rpmlib(SetVersions) @@ -19,3 +19,3 @@ Provides: prescanic = 0.8.1-alt1:sisyphus+225860.100.1.1 -File: /usr/bin/prescanic 100755 root:root e56a1317ea2aa1cd0b21e5d6640b735d +File: /usr/bin/prescanic 100755 root:root 05bfc88735dfd37c6f7be67723f0a92f File: /usr/share/doc/prescanic-0.8.1 40755 root:root @@ -24,2 +24,2 @@ File: /usr/share/doc/prescanic-0.8.1/TODO 100644 root:root f858febc1695a0ba8d5c4597f160a951 -RPMIdentity: cff83f070bef04a749499e231a22b6b84ebaa87f6eab8da7710cad8a08618bd67231d41bba5fcb2b3e611d1ceade08abc8f95e95b08ad7cb90c6fefa27e293be +RPMIdentity: 3a78d2498d74348fe146bad118eb69e0662809d4521a58e66f7c20f790d8ca12d9ffd0f508dd7a4f16552678ebce7c513ebeb153f87e5b62514f455e1140d7dc --- prescanic-debuginfo-0.8.1-alt1.x86_64.rpm.repo 2019-03-29 09:20:36.000000000 +0000 +++ prescanic-debuginfo-0.8.1-alt1.x86_64.rpm.hasher 2024-06-16 00:36:23.918470643 +0000 @@ -1,4 +1,4 @@ -/usr/lib/debug/.build-id/d3 40755 root:root -/usr/lib/debug/.build-id/d3/33e088d737b7113b2a69ea4582867abb70ba5d 120777 root:root ../../../../bin/prescanic -/usr/lib/debug/.build-id/d3/33e088d737b7113b2a69ea4582867abb70ba5d.debug 120777 root:root ../../usr/bin/prescanic.debug +/usr/lib/debug/.build-id/57 40755 root:root +/usr/lib/debug/.build-id/57/de48a1a36a3117711c12d35a37241020ca1dc5 120777 root:root ../../../../bin/prescanic +/usr/lib/debug/.build-id/57/de48a1a36a3117711c12d35a37241020ca1dc5.debug 120777 root:root ../../usr/bin/prescanic.debug /usr/lib/debug/usr/bin/prescanic.debug 100644 root:root @@ -30,6 +30,6 @@ Provides: prescanic-debuginfo = 0.8.1-alt1:sisyphus+225860.100.1.1 -File: /usr/lib/debug/.build-id/d3 40755 root:root -File: /usr/lib/debug/.build-id/d3/33e088d737b7113b2a69ea4582867abb70ba5d 120777 root:root ../../../../bin/prescanic -File: /usr/lib/debug/.build-id/d3/33e088d737b7113b2a69ea4582867abb70ba5d.debug 120777 root:root ../../usr/bin/prescanic.debug -File: /usr/lib/debug/usr/bin/prescanic.debug 100644 root:root 14769942257cc254eddd847d7c175a20 +File: /usr/lib/debug/.build-id/57 40755 root:root +File: /usr/lib/debug/.build-id/57/de48a1a36a3117711c12d35a37241020ca1dc5 120777 root:root ../../../../bin/prescanic +File: /usr/lib/debug/.build-id/57/de48a1a36a3117711c12d35a37241020ca1dc5.debug 120777 root:root ../../usr/bin/prescanic.debug +File: /usr/lib/debug/usr/bin/prescanic.debug 100644 root:root 56c1be71b816ec5e3ed8e0799ec2c2f9 File: /usr/src/debug/prescanic-0.8.1 40755 root:root @@ -53,2 +53,2 @@ File: /usr/src/debug/prescanic-0.8.1/victim.c 100644 root:root 9da14ef1cfb27c492c62a236c25a3220 -RPMIdentity: b77d07bd7873ceb38e553137eb5099670bc03d43c881136786e9ffaa6903cfe60042e43fba508728ac8db08d0a9214228444ecb87c089a3cccf20e7b4569699b +RPMIdentity: aa1ed66f9729b89329b43c8f34e6e91f7b70cfe280b76ad5334da63833a1d3fc27ee5f560aad01c07e7936ee3f82347f872434755708d8261fb0c495411dac9d