- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Assistance w/configuring Crack using gcc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 09:21 AM
05-02-2002 09:21 AM
I've loaded a copy of Crack5.0 under:
"/tmp/Crack5.0/c50a"
I've loaded the following under "/opt/FAST/":
gcc-2.95.2 (Can't get ahold of C-ANSI-C)
binutils-2.9.1
From here I've done the following:
- vi'd "~/c50a/Crack" and set "CRACK_PATH" to:
/tmp/Crack5.0/c50a:/opt/FAST/gcc-2.95.2:/opt/FAST/binutils-2.9.1:/usr/local/bin:
- commented out the "cc" info and uncommented the 'gcc' stuff:
# gcc 2.7.2
CC=gcc
CFLAGS="-g -O2 -Wall $C5FLAGS"
LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg: NetBSD MD5
- vi'd '/tmp/crack5.0/c50a/src/libdes/Makefile' and commented accordingly the lines for 'gcc'.
CC=gcc
CFLAGS= -O4 -fomit-frame-pointer -funroll-loops $(OPTS) $(CFLAG)
-Note: I did not do any compiling of '~/binutils or ~/gcc'. Not sure if I need to or not.
-Proceeded to do a './Crack -makeonly' and get the following messages:
------------------------------------------
# ./Crack -makeonly
Crack 5.0a: The Password Cracker.
(c) Alec Muffett, 1991, 1992, 1993, 1994, 1995, 1996
System: HP-UX nmkt B.11.00 U 9000/800 606319383 unlimited-user license
Home: /tmp/crack5.0/c50a
Invoked: ./Crack -makeonly
Option: -makeonly enabled
Stamp: hp-ux-b-9000/800
Crack: making utilities in run/bin/hp-ux-b-9000/800
find . -name "*~" -print | xargs -n50 rm -f
( cd src; for dir in * ; do ( cd $dir ; make clean ) ; done )
rm -f dawglib.o debug.o rules.o stringlib.o *~
/bin/rm -f *.o tags core rpw destest des speed libdes.a .nfs* *.old *.bak destest rpw des speed
rm -f *.o *~
`../../run/bin/hp-ux-b-9000/800/libc5.a' is up to date.
gcc -g -O2 -Wall -DUSE_STRING_H -DUSE_STDLIB_H -DUSE_SIGNAL_H -DUSE_SYS_TYPES_H -DUSE_UNISTD_H -
DUSE_PWD_H -I../lib -o ../../run/bin/hp-ux-b-9000/800/dawg dawg.c ../../run/bin/hp-ux-b-9000/800/libc5.a
-lcrypt
Make: Cannot load gcc. Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
-------------------------------------------
Any further thoughts...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 09:24 AM
05-02-2002 09:24 AM
SolutionThis looks to me like it is not able to find gcc in it's path. Either set the path using the PATH statement before the compilation or specify full path to gcc in your Makefile.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 09:25 AM
05-02-2002 09:25 AM
Re: Assistance w/configuring Crack using gcc
I just did this ..with the help of this link
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x358337f45ef7d4118fef0090279cd0f9,00.html
After making thoose changes run
Crack -makeonly
then
Crack -makedict
then you are ready to go.
Crack [filename]
eg: Crack -nice 10 /etc/passwd
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 09:49 AM
05-02-2002 09:49 AM
Re: Assistance w/configuring Crack using gcc
When I run the '-makedict' it seems ok except for 2 messages.
Please advise as to wether I should be concerned with these or not.
Thanks in advance.
------------------------------------------
(ending output from './Crack -makedict')
Crack: making dictionary groups, please be patient...
doing group 1...
/tmp/crack5.0/c50a/scripts/smartcat[36]: /usr/dict/*words*: Cannot find or open the file.
doing group 2...
doing group 3...
mkdictgrps: uniq'ing dictionary groups...
group 1 and 2...
group 1 and 3...
group 2 and 3...
mkdictgrps: compressing dictionary groups...
/tmp/crack5.0/c50a/scripts/smartcomp[15]: gzip: not found.
/tmp/crack5.0/c50a/scripts/smartcomp[15]: gzip: not found.
/tmp/crack5.0/c50a/scripts/smartcomp[15]: gzip: not found.
Crack: Created new dictionaries...
Crack: makedict done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 11:07 AM
05-02-2002 11:07 AM
Re: Assistance w/configuring Crack using gcc
I dont rememeber if i got thoose errors. I know I got the first one about the *make* and it didnt seem to effect anything. What happends wwhen you try to run it?
./Crack /etc/passwd
that will make a Reporter that you can execute and see the report. What I did was make a test user and give a simple password of abc123 and it worked I saw it in the report in the "passwords cracked as of ".
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 11:22 AM
05-02-2002 11:22 AM
Re: Assistance w/configuring Crack using gcc
I have a suspecion that your dictonary used by crack is not properly built. To verify that create a user with a simple password like 'cat' and see if your crack can crack the program.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 11:25 AM
05-02-2002 11:25 AM
Re: Assistance w/configuring Crack using gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 12:02 PM
05-02-2002 12:02 PM
Re: Assistance w/configuring Crack using gcc
You need to modify your conf/dictgrps.conf file to replace /usr/dict with /usr/share/dict. Leave the remaining entries as they are.
As per the trusted system, the good thing about it is that an ordinary user cannot look at the encrypted passwords to crack. And when you create the system to trusted for the first time, it expires the user passwords so that users will change them to stronger passwords (ofcourse you can override this option too). If you still want to crack the passwords, you need to write a script that searches files under /tcb/files/auth in [a-b][A-B] directories, picks up the users and their passwords into a file. Then you need to join this file and /etc/passwd to get the original password file. You need to put it in a secured directory and run Crack on it otherwise it defeats the purpose of the system being trusted.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 12:05 PM
05-02-2002 12:05 PM
Re: Assistance w/configuring Crack using gcc
I went to a trusted system and went to
/tcb/files/auth
and ran crack against one of my users. I see that it did not like that file.
:(
Richard