
AskParam: Asks for command-line parameters via GUI dialog
Moderators: Hacker, petermad, Stefan2, white
Anti-virus detects it as a trojan
Hey MVV,
Thanks for all your tools. I use many of them
. The new release of AskParam is being detected as a trojan. You can check by googling the MD5 hash and following the link to virustotal.
MD5: 50bdb9d894b676dccc2492919f13f3c2
Thanks for all your tools. I use many of them

MD5: 50bdb9d894b676dccc2492919f13f3c2
Re: Anti-virus detects it as a trojan
There is nothing special with this detections.billiebub wrote:Hey MVV,
Thanks for all your tools. I use many of them. The new release of AskParam is being detected as a trojan. You can check by googling the MD5 hash and following the link to virustotal.
MD5: 50bdb9d894b676dccc2492919f13f3c2
The problem is not Askparam but the Virus scanners.
Btw. the x64 (1.0.6.146) version is detected with 0/56 !
billiebub,
As Horst.Epp said, problem is in bad AV signatures and heuristics.
BTW latest beta 146 has only 2/56 (paranoid Avast heuristic and some unknown AV):
https://www.virustotal.com/ru/file/d010db95cc181816187f10ba566af5da030c0a59e718a201a05aaa583cca7f01/analysis/1443458684/
And my current beta 148 has only 1/56 (paranoid Avast heuristic):
https://www.virustotal.com/ru/file/dbfedb30f9d68a0709763bc4411ea187835b3eb089bbbc073987eac04f115267/analysis/1443458842/
As Horst.Epp said, problem is in bad AV signatures and heuristics.
BTW latest beta 146 has only 2/56 (paranoid Avast heuristic and some unknown AV):
https://www.virustotal.com/ru/file/d010db95cc181816187f10ba566af5da030c0a59e718a201a05aaa583cca7f01/analysis/1443458684/
And my current beta 148 has only 1/56 (paranoid Avast heuristic):
https://www.virustotal.com/ru/file/dbfedb30f9d68a0709763bc4411ea187835b3eb089bbbc073987eac04f115267/analysis/1443458842/
AskParam in TC's Internal Associations
Not sure if this has been asked but I have a situation where I would like to use AskParam in TC's Internal associations. What do you do in the case where AskParam uses %1 and TC passes %1 also to the command?
For example, I would like to right click on a file and encrypt it using a third party tool. I would use AskParam to ask for the password and then pass that over to the tool. TC will automatically pass %1 for the file chosen and AskParam would treat the password variable as %1 too.
The way I'm hacking it right now is to fool AskParam into accepting %2 instead of %1 by adding a dummy first parameter but obviously I get presented with two input prompts.
What I was thinking is if it's possible to also have the ability to pass the %var% name to the command instead of %1.
For example, I would like to right click on a file and encrypt it using a third party tool. I would use AskParam to ask for the password and then pass that over to the tool. TC will automatically pass %1 for the file chosen and AskParam would treat the password variable as %1 too.
The way I'm hacking it right now is to fool AskParam into accepting %2 instead of %1 by adding a dummy first parameter but obviously I get presented with two input prompts.
What I was thinking is if it's possible to also have the ability to pass the %var% name to the command instead of %1.
Oops, sorry, I've missed your post.
Well, TC doesn't pass %1 to AskParam but filename instead. And it seems that it doesn't pass %1 character when you type %%1 as it does for regular commands (sad!). However you can use named variables using latest beta:
Well, TC doesn't pass %1 to AskParam but filename instead. And it seems that it doesn't pass %1 character when you type %%1 as it does for regular commands (sad!). However you can use named variables using latest beta:
Code: Select all
AskParam.exe /p(e)"mypass: Enter password:" program.exe "%1" %%mypass%%
Last edited by MVV on 2015-11-24, 07:08 UTC, edited 1 time in total.
Glad to help! 
BTW there is a similar way w/o named variable (works in older versions too):

BTW there is a similar way w/o named variable (works in older versions too):
Code: Select all
AskParam.exe /p"Enter password:" program.exe "%1" %%AskParam1%%
Re: AskParam: Asks for command-line parameters via GUI dialog
I've found a bug.
Here is the step to reproduce:
1. create these DIRS, E:\test\2019 and E:\test\abc
2. create a button in TC, like: /q"`" /rd /c"param" /u"A: `%P`" /p(h)"Profile:" cmd /c echo %%1%N && pause
3. put cursor on 2019 and abc, click the button created in step 2.
Result: E:\test\2019 --> 19
E:\test\abc --->"E:\test\"abc
It seem the %%1+%N(pure number) will lead to something weird... and I find a hack for the moment.
/q"`" /rd /c"param" /u"A: `%P" /p(h)"Profile:" cmd /c echo %%1"%N && pause
I create a 7z.exe command line button asking in where put the archive, %P%N.7z or %T%N.7z... and the space in dirs & file name drive me crazy.... at last I make this `%P`%N.7z weirdo... I work fine until I met a dir name 20191116
Here is the step to reproduce:
1. create these DIRS, E:\test\2019 and E:\test\abc
2. create a button in TC, like: /q"`" /rd /c"param" /u"A: `%P`" /p(h)"Profile:" cmd /c echo %%1%N && pause
3. put cursor on 2019 and abc, click the button created in step 2.
Result: E:\test\2019 --> 19
E:\test\abc --->"E:\test\"abc
It seem the %%1+%N(pure number) will lead to something weird... and I find a hack for the moment.
/q"`" /rd /c"param" /u"A: `%P" /p(h)"Profile:" cmd /c echo %%1"%N && pause
I create a 7z.exe command line button asking in where put the archive, %P%N.7z or %T%N.7z... and the space in dirs & file name drive me crazy.... at last I make this `%P`%N.7z weirdo... I work fine until I met a dir name 20191116

Re: AskParam: Asks for command-line parameters via GUI dialog
Well, it is really a problem of all such systems - how to detect end of a token if two tokens are concatenated.
In this case it is not easy to detect how many digits are in parameter number if there are digits just after parameter number, this is not a bug but an ambiguity. Program can't know what do you want to insert - %1 and 2019, %12 and 019 etc (imagine a case when there are enough parameters passed).
For such cases there is a 3-digit limitation in AskParam for parameter number (i.e. you can't ask for more than 999 parameters
).
So you can try %%001%N in your button parameters, and this will always mean that you want to insert %001 and then any following digits:
Also you can insert parameter via %AskParam1%, so there will be no ambiguity:
In this case it is not easy to detect how many digits are in parameter number if there are digits just after parameter number, this is not a bug but an ambiguity. Program can't know what do you want to insert - %1 and 2019, %12 and 019 etc (imagine a case when there are enough parameters passed).
For such cases there is a 3-digit limitation in AskParam for parameter number (i.e. you can't ask for more than 999 parameters

So you can try %%001%N in your button parameters, and this will always mean that you want to insert %001 and then any following digits:
Code: Select all
Parameters: /q"`" /rd /c"param" /u"A: `%P`" /p(h)"Profile:" cmd /c echo %%001%N && pause
Code: Select all
Parameters: /q"`" /rd /c"param" /u"A: `%P`" /p(h)"Profile:" cmd /c echo %%AskParam1%%%N && pause