Page 2 of 3

Re: VirusTotal Reporter for XYplorer

Posted: 30 Jan 2015 15:00
by PeterH
JLoftus wrote:Just noticed this error too. Stepping through the script, I copied the value of $vtReturn and pasted that into a browser, and got the correct result.

Any ideas on this?
Good test - but typo?

Statement:
$vtReturn = readurl("$vtURL", 1, 1, 1) ;
Var replaced:
$vtReturn = readurl("https://www.virustotal.com/en/file/54f7 ... /analysis/", 1, 1, 1) ;
This shows error: "URL empty." in XY.
The same string (contents of $vtURL) entered into Firefox returns correct result!

So XY seems to have a problem here, with readurl()!

(I assume it has worked before: I didn't use it before...)

Edit: outline var name :roll:

Edit2: tried it without NoCookies (i.e. $vtReturn = readurl("$vtURL", 0, 1, 1) ; )
:arrow: same result.

Re: VirusTotal Reporter for XYplorer

Posted: 31 Jan 2015 10:38
by admin
No chance. The URL is reported as having 0 bytes. Tried everything I know.

Re: VirusTotal Reporter for XYplorer

Posted: 31 Jan 2015 15:41
by SammaySarkar
how's the size obtained?
http header reports good content-lengths.

Re: VirusTotal Reporter for XYplorer

Posted: 01 Feb 2015 15:12
by admin
HttpQueryInfo with (HTTP_QUERY_CONTENT_LENGTH | HTTP_QUERY_FLAG_NUMBER)

Re: VirusTotal Reporter for XYplorer

Posted: 07 Aug 2015 15:49
by JLoftus
Any chance of reviving this?

Re: VirusTotal Reporter for XYplorer

Posted: 07 Aug 2015 15:59
by highend
Still reporting "URL empty" so I guess not...

Re: VirusTotal Reporter for XYplorer

Posted: 07 Aug 2015 16:23
by SammaySarkar
I had an idea to fix this. Ill see how it turns out, but not possible now.

edit: the idea is to read the URL using vbscript which hopefully won't have this problem. If anybody wants to fix this, be my guest. :smile:

Re: VirusTotal Reporter for XYplorer

Posted: 18 Aug 2015 13:09
by highend
So, here is a working version. It uses a small vbscript to get the content of the urls...
I included error handling inside the vbscript but the .xys one currently doesn't care about it. If it's necessary I'll add it...
VirusTotalReporter.zip
(8.58 KiB) Downloaded 143 times

Re: VirusTotal Reporter for XYplorer

Posted: 18 Aug 2015 13:39
by PeterH
Hey: thanks a lot! :D Very helpful :appl:

But: "Dubious syntax: LR"
in $selItems = trim(<selitems>,'"',LR);
:arrow: In the future please quote 'LR', too.
(For this time I changed it here local. But maybe others...)
(Seems you don't use systax checking? :whistle: )

Re: VirusTotal Reporter for XYplorer

Posted: 18 Aug 2015 14:01
by highend
But: "Dubious syntax: LR"
in $selItems = trim(<selitems>,'"',LR);
:arrow: In the future please quote 'LR', too.
That's not my code :biggrin: and I didn't revise any code that Sammay wrote...
Seems you don't use systax checking?
Em, no^^ My scripts are always flawless. By default, no exceptions! :whistle:

Re: VirusTotal Reporter for XYplorer

Posted: 18 Aug 2015 19:28
by highend
Minor change (no warning when strict syntax checking is used)...
VirusTotalReporter.zip
(8.57 KiB) Downloaded 161 times

Re: VirusTotal Reporter for XYplorer

Posted: 19 Aug 2015 03:03
by JLoftus
Thank you very much! :appl:

Re: VirusTotal Reporter for XYplorer

Posted: 19 Aug 2015 03:16
by yusef88
Thanks for updating

Re: VirusTotal Reporter for XYplorer

Posted: 19 Aug 2015 05:54
by SammaySarkar
hey, thanks highend! :tup: :tup:
Sorry if any of my old code caused any irritation! :kidding:

@Peter, my past self apologizes sincerely for not following syntax; (bad past-me! no TV for me! :mrgreen: )
I can't make promises, but I TRY nowadays!

Re: VirusTotal Reporter for XYplorer

Posted: 19 Aug 2015 10:44
by PeterH
@ highend and Sammay :appl: :appl: :appl:

By the way: I don't know, why I have "Syntax Checking" checked.
As I never(!) code errors :biggrin: :lol:
(At least in the previous weeks, as I didn't have time :whistle:
Just enough to check the forum...)