Page 1 of 1

[SOLVED]: Passing parameters between WAPT packets

Published: April 9, 2024 - 4:50 PM
by croquebert
Context:
WAPT version: 2.2.3 Enterprise
Server OS: Debian 12
Administration console OS: Win10pro
Package development workstation OS: Win10pro

Hello,

Is it possible to pass parameters between different WAPT packages?

For example: a PAKWAPT1 package returns the string 'chaineapasser' via the install function (and a return statement), and a PAKWAPT2 package tries to retrieve the string 'chaineapasser' by calling the WAPT.install function:
mavariableaassigner = WAPT.install( ['PAKWAPT1'], force = True)

This example doesn't work, but perhaps there's a mechanism to make it work?

Best regards,

Christophe.

Re: Passing parameters between WAPT packets

Published: April 10, 2024 - 4:59 PM
by dcardon
Hi Christophe,

I don't think the return value of the install() function can be used that way.

However, you can create a file and store the value in question. If it's a value that shouldn't be shared, you can store it in the private directory of wapt.

Regards,

Denis

[SOLVED]: Passing parameters between WAPT packets

Published: April 11, 2024 - 11:31
by croquebert
dcardon wrote: Apr 10, 2024 - 4:59 PM Hello Christophe,

I don't think the return value of the install() function can be used in that way.

However, you can create a file and store the value in question. If it's a value that shouldn't be shared, you can store it in the private directory of wapt.

Regards,

Denis
Hello Denis,

Thank you for your feedback.

I tried to retrieve the return value without success (with a MAVARIABLE = WAPT.install('PAQUETCHARGEUTILE')) without success.

The idea was to retrieve a payload emitted by a package to be exploited without having to use the file system.

The issue can be considered resolved.

Sincerely,

Christophe

Re: [SOLVED]: Passing parameters between WAPT packets

Published: April 11, 2024 - 1:33 PM
by dcardon
Thanks for the feedback, Christophe :-)
Denis