The following packages will be installed: chntpw Fetching README... 0%100%100%100%100%100%Done Fetching chntpw.SlackBuild... 0%100%100%100%100%100%Done Fetching chntpw.info... 0%100%100%100%100%100%Done Fetching patches/chntpw-080526-correct-test-for-failing-open-syscall.patch... 0%100%100%100%100%100%Done Fetching patches/chntpw-110511-detect-failure-to-write-key.patch... 0%100%100%100%100%100%Done Fetching patches/chntpw-110511-reged-no-deref-null.patch... 0%100%100%100%100%100%Done Fetching patches/chntpw-110511-robustness.patch... 0%100%100%100%100%100%Done Fetching patches/chntpw-140201-fix-bogus-errno-use.patch... 0%100%100%100%100%100%Done Fetching patches/chntpw-140201-get_abs_path.patch... 0%100%100%100%100%100%Done Fetching patches/chntpw-140201-port-to-gcrypt-debian.patch... 0%100%100%100%100%100%Done Fetching slack-desc... 0%100%100%100%100%100%Done Archive: /usr/src/slapt-src-x86_64/misc/chntpw/chntpw-source-140201.zip creating: chntpw-140201/ inflating: chntpw-140201/edlib.c inflating: chntpw-140201/samusrgrp.c inflating: chntpw-140201/reged.c inflating: chntpw-140201/hash.c inflating: chntpw-140201/ntreg.c inflating: chntpw-140201/libsam.c inflating: chntpw-140201/samusrgrp.static inflating: chntpw-140201/chntpw.c inflating: chntpw-140201/chntpw-presplit.c inflating: chntpw-140201/LGPL.txt inflating: chntpw-140201/chntpw.static inflating: chntpw-140201/README.txt inflating: chntpw-140201/COPYING.txt inflating: chntpw-140201/GPL.txt inflating: chntpw-140201/HISTORY.txt inflating: chntpw-140201/regedit.txt inflating: chntpw-140201/ntreg.h inflating: chntpw-140201/MANUAL.txt inflating: chntpw-140201/cpnt.c inflating: chntpw-140201/sampasswd.c inflating: chntpw-140201/INSTALL.txt inflating: chntpw-140201/sampasswd.static inflating: chntpw-140201/Makefile inflating: chntpw-140201/syskey.txt inflating: chntpw-140201/sam.h inflating: chntpw-140201/reged.static inflating: chntpw-140201/WinReg.txt patching file ntreg.c Hunk #1 succeeded at 4132 (offset 1367 lines). patching file ntreg.c Hunk #1 succeeded at 3492 (offset 103 lines). patching file reged.c patching file ntreg.c Hunk #1 succeeded at 227 (offset 37 lines). Hunk #2 succeeded at 4253 (offset 130 lines). patching file ntreg.c Hunk #1 succeeded at 4240 (offset -1 lines). Hunk #2 succeeded at 4257 (offset -1 lines). patching file ntreg.c Hunk #1 succeeded at 1515 (offset 4 lines). patching file Makefile patching file chntpw.c gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC chntpw.c chntpw.c: In function ‘handle_syskey’: chntpw.c:872:31: warning: iteration 11 invokes undefined behavior [-Waggressive-loop-optimizations] 872 | ff->syskeyflags1[i] = 0; | ~~~~~~~~~~~~~~~~~~~~^~~ chntpw.c:871:23: note: within this loop 871 | for (i = 0; i < 0x3b; i++) { | ~~^~~~~~ gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC ntreg.c ntreg.c: In function ‘parse_nk’: ntreg.c:546:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 546 | printf("%04x type = 0x%02x %s\n", D_OFFS(type) ,key->type, | ~~~^ | | | unsigned int | %04lx ntreg.c:548:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 548 | printf("%04x timestamp skipped\n", D_OFFS(timestamp) ); | ~~~^ | | | unsigned int | %04lx ntreg.c:549:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 549 | printf("%04x parent key offset = 0x%0x\n", D_OFFS(ofs_parent) ,key->ofs_parent + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:550:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 550 | printf("%04x number of subkeys = %d\n", D_OFFS(no_subkeys),key->no_subkeys); | ~~~^ | | | unsigned int | %04lx ntreg.c:551:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 551 | printf("%04x lf-record offset = 0x%0x\n",D_OFFS(ofs_lf),key->ofs_lf + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:552:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 552 | printf("%04x number of values = %d\n", D_OFFS(no_values),key->no_values); | ~~~^ | | | unsigned int | %04lx ntreg.c:553:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 553 | printf("%04x val-list offset = 0x%0x\n",D_OFFS(ofs_vallist),key->ofs_vallist + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:554:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 554 | printf("%04x sk-record offset = 0x%0x\n",D_OFFS(ofs_sk),key->ofs_sk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:555:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 555 | printf("%04x classname offset = 0x%0x\n",D_OFFS(ofs_classnam),key->ofs_classnam + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:557:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 557 | printf("%04x dummy3 = 0x%0x (%d)\n",D_OFFS(dummy3),key->dummy3,key->dummy3); | ~~~^ | | | unsigned int | %04lx ntreg.c:558:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 558 | printf("%04x dummy4 = 0x%0x (%d)\n",D_OFFS(dummy4),key->dummy4,key->dummy4); | ~~~^ | | | unsigned int | %04lx ntreg.c:559:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 559 | printf("%04x dummy5 = 0x%0x (%d)\n",D_OFFS(dummy5),key->dummy5,key->dummy5); | ~~~^ | | | unsigned int | %04lx ntreg.c:560:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 560 | printf("%04x dummy6 = 0x%0x (%d)\n",D_OFFS(dummy6),key->dummy6,key->dummy6); | ~~~^ | | | unsigned int | %04lx ntreg.c:561:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 561 | printf("%04x dummy7 = 0x%0x (%d)\n",D_OFFS(dummy7),key->dummy7,key->dummy7); | ~~~^ | | | unsigned int | %04lx ntreg.c:563:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 563 | printf("%04x name length = %d\n", D_OFFS(len_name),key->len_name); | ~~~^ | | | unsigned int | %04lx ntreg.c:564:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 564 | printf("%04x classname length = %d\n", D_OFFS(len_classnam),key->len_classnam); | ~~~^ | | | unsigned int | %04lx ntreg.c:566:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 566 | printf("%04x Key name: <",D_OFFS(keyname) ); | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_vk’: ntreg.c:584:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 584 | printf("%04x name length = %d (0x%0x)\n", D_OFFS(len_name), | ~~~^ | | | unsigned int | %04lx ntreg.c:586:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 586 | printf("%04x length of data = %d (0x%0x)\n", D_OFFS(len_data), | ~~~^ | | | unsigned int | %04lx ntreg.c:588:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 588 | printf("%04x data offset = 0x%0x\n",D_OFFS(ofs_data),key->ofs_data + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:589:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 589 | printf("%04x value type = 0x%0x %s\n", D_OFFS(val_type), key->val_type, | ~~~^ | | | unsigned int | %04lx ntreg.c:592:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 592 | printf("%04x flag = 0x%0x\n",D_OFFS(flag),key->flag); | ~~~^ | | | unsigned int | %04lx ntreg.c:593:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 593 | printf("%04x *unused?* = 0x%0x\n",D_OFFS(dummy1),key->dummy1); | ~~~^ | | | unsigned int | %04lx ntreg.c:595:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 595 | printf("%04x Key name: <",D_OFFS(keyname) ); | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_sk’: ntreg.c:613:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 613 | printf("%04x *unused?* = %d\n" , D_OFFS(dummy1), key->dummy1 ); | ~~~^ | | | unsigned int | %04lx ntreg.c:614:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 614 | printf("%04x Offset to prev sk = 0x%0x\n", D_OFFS(ofs_prevsk), key->ofs_prevsk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:615:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 615 | printf("%04x Offset to next sk = 0x%0x\n", D_OFFS(ofs_nextsk), key->ofs_nextsk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:616:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 616 | printf("%04x Usage counter = %d (0x%0x)\n", D_OFFS(no_usage), | ~~~^ | | | unsigned int | %04lx ntreg.c:618:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 618 | printf("%04x Security data len = %d (0x%0x)\n", D_OFFS(len_sk), | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_lf’: ntreg.c:637:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 637 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:640:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 640 | printf("%04x %3d Offset: 0x%0x - <%c%c%c%c>\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_lh’: ntreg.c:665:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 665 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:668:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 668 | printf("%04x %3d Offset: 0x%0x - \n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_li’: ntreg.c:692:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 692 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:695:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 695 | printf("%04x %3d Offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_ri’: ntreg.c:717:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 717 | printf("%04x number of subindices = %d\n", D_OFFS(no_lis), key->no_lis ); | ~~~^ | | | unsigned int | %04lx ntreg.c:720:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 720 | printf("%04x %3d Offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_db’: ntreg.c:739:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 739 | printf("%04x number of parts = %d\n", D_OFFS(no_part), key->no_part ); | ~~~^ | | | unsigned int | %04lx ntreg.c:741:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 741 | printf("%04x Data list at offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘alloc_val_data’: ntreg.c:2155:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2155 | datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; | ^ ntreg.c:2155:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2155 | datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; | ^ ntreg.c: In function ‘free_block’: ntreg.c:1236:14: warning: ‘prev’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1236 | prevsz = get_int(hdesc->buffer+prev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c: In function ‘del_key’: ntreg.c:2893:28: warning: ‘delnk’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2893 | free_block(hdesc, delnk->ofs_classnam + 0x1000); | ~~~~~^~~~~~~~~~~~~~ ntreg.c:2856:70: warning: ‘delnkofs’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2856 | if (delnkofs) delnk = (struct nk_key *)(delnkofs + hdesc->buffer + 0x1004); | ^ ntreg.c: In function ‘trav_path’: ntreg.c:1734:58: warning: ‘adjust’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1734 | return(trav_path(hdesc, newnkofs, path+plen+adjust, type)); | ^ ntreg.c:1707:43: warning: ‘partptr’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1707 | partw = string_prog2regw(part, partptr-part, &partw_len); | ~~~~~~~^~~~~ ntreg.c:1659:36: warning: ‘plen’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1659 | if ((type & TPF_VK_ABS) || (!path[plen] && (type & TPF_VK) && key->no_values) ) { | ^ ntreg.c: In function ‘import_reg’: ntreg.c:3946:18: warning: ‘valstr’ may be used uninitialized in this function [-Wmaybe-uninitialized] 3946 | valstr = realloc(valstr, strlen(valstr) + l + 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c: In function ‘openHive’: ntreg.c:4359:29: warning: ‘p’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4359 | hdesc->lastbin = pofs - p->ofs_next; /* Compensate for loop that added at end above */ | ~^~~~~~~~~~ gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC edlib.c gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC libsam.c libsam.c: In function ‘sam_put_grp_members_sid’: libsam.c:514:28: warning: passing argument 1 of ‘hexdump’ from incompatible pointer type [-Wincompatible-pointer-types] 514 | if (gverbose) hexdump(&c->data, 0, c->len, 1); | ^~~~~~~~ | | | int * In file included from libsam.c:47: ntreg.h:394:20: note: expected ‘char *’ but argument is of type ‘int *’ 394 | void hexdump(char *hbuf, int start, int stop, int ascii); | ~~~~~~^~~~ libsam.c:531:56: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘void *’ [-Wformat=] 531 | if (gverbose) printf(" copying : %d len %x, at %x\n",i,sarray[i].len, sidptr); | ~^ ~~~~~~ | | | | unsigned int void * | %p libsam.c:542:27: warning: passing argument 1 of ‘hexdump’ from incompatible pointer type [-Wincompatible-pointer-types] 542 | if (gverbose) hexdump(&c->data, 0, c->len, 1); | ^~~~~~~~ | | | int * In file included from libsam.c:47: ntreg.h:394:20: note: expected ‘char *’ but argument is of type ‘int *’ 394 | void hexdump(char *hbuf, int start, int stop, int ascii); | ~~~~~~^~~~ gcc -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC -o chntpw chntpw.o ntreg.o edlib.o libsam.o -L/usr/lib64 -lgcrypt -lgpg-error gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC cpnt.c gcc -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC -o cpnt cpnt.o -L/usr/lib64 -lgcrypt -lgpg-error gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC reged.c reged.c: In function ‘main’: reged.c:218:30: warning: ‘ch’ may be used uninitialized in this function [-Wmaybe-uninitialized] 218 | if (logchange) fprintf(ch,"%s ",hive[il]->filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC -o reged reged.o ntreg.o edlib.o gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC samusrgrp.c gcc -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC -o samusrgrp samusrgrp.o ntreg.o libsam.o gcc -c -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC sampasswd.c sampasswd.c: In function ‘main’: sampasswd.c:141:7: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] 141 | int ret, wret, il; | ^~~ gcc -DUSELIBGCRYPT -g -I. -Wall -O2 -fPIC -o sampasswd sampasswd.o ntreg.o libsam.o Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-x86_64/misc/chntpw/chntpw-140201-x86_64-1salix15.0.txz ./ install/ install/slack-desc usr/ usr/bin/ usr/bin/chntpw usr/bin/cpnt usr/bin/reged usr/doc/ usr/doc/chntpw-140201/ usr/doc/chntpw-140201/COPYING.txt usr/doc/chntpw-140201/GPL.txt usr/doc/chntpw-140201/HISTORY.txt usr/doc/chntpw-140201/INSTALL.txt usr/doc/chntpw-140201/LGPL.txt usr/doc/chntpw-140201/README.txt usr/doc/chntpw-140201/WinReg.txt usr/doc/chntpw-140201/chntpw.SlackBuild usr/doc/chntpw-140201/regedit.txt usr/doc/chntpw-140201/syskey.txt Slackware package /usr/src/slapt-src-x86_64/misc/chntpw/chntpw-140201-x86_64-1salix15.0.txz created. Installing package chntpw-140201-x86_64-1salix15.0... | chntpw (Change NT Passwords) | | View some information and change user passwords in a Windows | (NT/XP/Vista/win7) etc SAM userdatabase file. You do not need to | know the old passwords.Ophcrack is a free Windows password cracker | based on rainbow tables. | | Homepage: http://pogostick.net/~pnh/ntpasswd/ | | | | |