Hi!
Please, help me!
I tried to run hashcat from my C programm, but HashCat is running fault.
My C code:
Return:
But! If I add
OR
change execlp on system command...
HashCat it's OK!
How can I use execlp command without chdir and system?
I use CentOS 7.
Thanks your help!
Please, help me!
I tried to run hashcat from my C programm, but HashCat is running fault.
My C code:
Code:
{
...
execlp("/opt/HashCat/cudaHashcat/cudaHashcat64.bin", "cudaHashcat64.bin", "-a 3", "-m 9400", "/tmp/hash.hash2", "1?d?d?d?d?d?d?d?d", NULL);
fprintf(stderr, "Execlp: %s\n", strerror(errno));
_exit(127);
}
return 0;
Code:
Hashes: 1 hashes; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
Applicable Optimizers:
* Zero-Byte
* Not-Iterated
* Single-Hash
* Single-Salt
* Brute-Force
Watchdog: Temperature abort trigger set to 90c
Watchdog: Temperature retain trigger set to 80c
ERROR: cuModuleLoad() 301
cudaHashcat v1.36 starting...
But! If I add
Code:
chdir("/opt/HashCat/cudaHashcat/");
change execlp on system command...
HashCat it's OK!
How can I use execlp command without chdir and system?
I use CentOS 7.
Thanks your help!