postwwwacct and password

sparek-3

Well-Known Member
Aug 10, 2002
2,174
281
388
cPanel Access Level
Root Administrator
Is there anyway to retrieve the password that an account was setup with, using /scripts/postwwwacct ? The wwwacct script calls postwwwacct with the @ARGV array. The password should be in the 3rd element of that array, but its of the form fd:3:6. Is there anyway to determine what password was used to setup the account?

Thanks
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
The wwwacct script doesn't pass the IP address or the password which is why I edited my wwwacct script.

Around line 1521 where it says:

Code:
if (-e "/scripts/postwwwacct") {
	system("/scripts/postwwwacct",@ARGV);
}
change it to:

Code:
if (-e "/scripts/postwwwacct") {
	system("/scripts/postwwwacct",@ARGV,$ip,$pass);
}
and the IP and password will then be available to the postwwwacct script.

If you do that, you may want to use my watchwwwacct script.