Re: Credentials Generation

Alex Rousskov <[email protected]> Tue, 24 Apr 2018 08:25:09 -0600
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <[email protected]>
On 04/24/2018 03:22 AM, Panagiotis Bariamis wrote:

> I am trying to create a workload for an authenticated proxy .
> LDAP administrator has already created usernames and passwords in the
> pattern :
> testproxyuser0001
> testproxyuser0002
> .
> .
> testproxyuser1000
> 
> and password ie test
> I use function
> string[] mycreds = "testproxyuser[1-1000]:test";
> Is there any operator that can produce testproxyuser0001 instead of
> testproxyuser1 , testproxyuser0100 etc ?

Polygraph does not support custom formatting natively, but you can
generate credential strings using a scripting language of your choice
and then add those generated credentials in your PGL workload, either as
a PGL #include file or as an output of PGL system() or `backticked` command:

http://www.web-polygraph.org/docs/reference/pgl/calls.html#call:docs/reference/pgl/calls/system

HTH,

Alex.
_______________________________________________
Users mailing list
[email protected]
http://lists.web-polygraph.org/mailman/listinfo/users