procedure TForm1.FormShow(Sender: TObject); begin if ParamStr(1)<>'' then if FileExists(ParamStr(1)) then begin sTabSheet2.Show; sEdit1.Text:=ParamStr(1); sEdit2.Text:=CalcHash(ParamStr(1),haSHA1); sSpeedButton1Click(Sender); end;
listP end;
الرجستري ( لا تنسوا تغيير مسار البرنامج )
PHP كود :
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\vtuploader] @="Send to VirusTotal" "Icon"="C:\VirusTotal Uploader 3.0\Project1.exe,0"
for i:=0 to (so(json)['total'].AsInteger-1) do with sListView1.Items.Add do begin antivirus:= so(json)['scans'].AsObject.getnames.AsArray[i].AsString; Caption:= antivirus; SubItems.Add(so(json)['scans'][antivirus]['detected'].AsString) ; SubItems.Add(so(json)['scans'][antivirus]['version'].AsString) ; SubItems.Add(so(json)['scans'][antivirus]['result'].AsString) ; SubItems.Add(so(json)['scans'][antivirus]['update'].AsString) ;
end; finally FormData.Free end;
sStatusBar1.Panels[0].Text :=so(json)['verbose_msg'].AsString; end else sStatusBar1.Panels[0].Text := 'File Not Found'; end;
procedure TForm2.sListView1CustomDrawItem(Sender: TCustomListView; Item: TListItem; State: TCustomDrawState; var DefaultDraw: Boolean); begin if Item.SubItems.Strings[2]<>'null' then begin Sender.Canvas.Brush.Color := sSkinManager1.GetGlobalColor; Sender.Canvas.FillRect(Item.DisplayRect(drBounds)); end; end; //--------------------------------------------------------------------------- procedure SetAssociation; begin with TRegistry.Create(KEY_WRITE OR KEY_WOW64_64KEY) do begin RootKey := HKEY_CLASSES_ROOT; if KeyExists('\*\shell\vtuploader') then begin Free; Exit; end; try OpenKey('\*\shell\vtuploader', True) ; WriteString('','Send to VirusTotal'); WriteString('Icon', ParamStr(0) + ',0'); CloseKey;