Jump to content
Ketarin forum


  • Posts

  • Joined

  • Last visited

Beavel's Achievements


Newbie (1/14)

  1. Well... this topic has become academic for me now. The site has updated in the last two weeks so cookies are no longer needed and I can reference the download directly. With that said, I'm still interested in why it wasn't working. When I tried putting a valid URL in, Ketarin would throws an error that the file doesn't exist. If I put in an invalid URL it would throw an error that the URL isn't valid. I'm using Ketarin Here is my app profile if it helps: <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="c340a239-ccd3-42fc-aadc-5b1bde938291"> <WebsiteUrl /> <UserAgent /> <UserNotes /> <LastFileSize>666540</LastFileSize> <LastFileDate>2011-08-20T09:26:14.46045</LastFileDate> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>version</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?<=<A HREF).*?((\d[.]){1,3}\d+)(?></A>)</Regex> <Url>http://hashcat.net/hashcat/</Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>cookiesFile</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{appdir}cookies.txt</TextualContent> <Name>cookiesFile</Name> </UrlVariable> </value> </item> <item> <key> <string>downloadURL</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>http://hashcat.net/files/download.php?proj={appname}</TextualContent> <Name>downloadURL</Name> </UrlVariable> </value> </item> <item> <key> <string>appdir</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{archive}\Hashcat\{appname}\</TextualContent> <Name>appdir</Name> </UrlVariable> </value> </item> <item> <key> <string>outputFilename</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{appname}-{version}.7z</TextualContent> <Name>outputFilename</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand>REM start "" /wait start "" /wait wget --content-disposition --spider --save-cookies="{cookiesFile}" {downloadURL} start "" /wait wget --content-disposition --output-document="{appdir}{outputFilename}" --load-cookies="{cookiesFile}" {downloadURL} exit 3</ExecutePreCommand> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <Category>InfoSec</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>F:\Archive\Hashcat\hashcat\hashcat-0.37.7z</PreviousLocation> <DeletePreviousFile>false</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2011-08-20T09:26:14.46045</LastUpdated> <TargetPath>{archive}\Hashcat\{appname}\</TargetPath> <FixedDownloadUrl>{downloadURL}</FixedDownloadUrl> <Name>hashcat</Name> </ApplicationJob> </Jobs> Another interesting thing is that when I updated the URL to be correct for the new site, my script fired, downloaded the file, and then Ketarin downloaded it right after. It seems that it ignored the exit 3.
  2. I'm just getting back to this issue as the application I need it for has updated, and the command did not run. I'm still not clear on when my batch script should trigger and run. I have an empty URL field which Ketarin complains about when I save the application. The warning Ketarin provides states that this application won't be downloaded, which I think is my problem. However, if I put anything in the URL field, Ketarin fails to detect a version change and complains it can't download the file because it is not of a binary file type. What should be placed in the Download Sources URL field so that the batch script runs, and Ketarin doesn't complain about the file not being binary? Below is my script in case there is something problematic with it, but it seems to work fine when I manually run it. start "" /wait wget --content-disposition --spider --save-cookies="{cookiesFile}" {downloadURL} start "" /wait wget --content-disposition --output-document="{appdir}{outputFilename}" --load-cookies="{cookiesFile}" {downloadURL} exit 3
  3. I have batch script set to run wget to download an application, but I can't get it to trigger on change. I've tried leaving in a value for the URL field, but it errors out. I've removed all data from the URL field and it now updates the version properly, but doesn't trigger the batch script to run. I know the batch script works as I can go into Edit-> Commands Tab -> Run and it downloads the file. I thought from reading the wiki that an external program could be used to download an application, but I'm not clear on how to get the command to trigger. Can someone help clarify how and when those commands are trigger? Thanks, Beavel *Sidenote: I went to wget because the application I am downloading requires a cookie to download, and needed to save and load it through wget.
  4. I started out with {!}, and have since updated to the UserAgent from my browser, but I still get the same results. Is any body else getting the correct HTML returned?
  5. In general I don't have trouble with SourceForge links, but for one particular app I am unable to get the page source to load properly in Ketarin in order to Regex against it. The page in question is: http://sourceforge.net/projects/processhacker/files/ Below are the HTML segments from the page that vary between Ketarin and a web browser: Ketarin: ><div class="download-bar">Looking for the latest version? <strong> <a href="http://sourceforge.net/projects/processhacker/files/processhacker2/plugins/WindowExplorer-1.2.zip/download" title="/processhacker2/plugins/WindowExplorer-1.2.zip: released on 2011-06-10 11:59:49 UTC"> <span>Download WindowExplorer-1.2.zip (70.5 KB)</span> </a> Firefox: ><div class="download-bar">Looking for the latest version? <strong> <a href="http://sourceforge.net/projects/processhacker/files/processhacker2/processhacker-2.16-setup.exe/download" title="/processhacker2/processhacker-2.16-setup.exe: released on 2011-05-30 09:17:25 UTC"> <span>Download processhacker-2.16-setup.exe (1.5 MB)</span> </a> I started to look at what was going on behind the scenes and I am not seeing anything obvious in the GET requests. If anybody has run into a similar issue or can point me in the right direction, it would be much appreciated. -Beavel
  6. Thanks Wagner. To save myself some time with your fix I used the SQLite Manage addon for Firefox https://addons.mozilla.org/en-US/firefox/addon/5817/ to modify the database. I then used the following SQL statement to update all of my sourceforge entries: <code> UPDATE jobs SET HttpReferer='http://sourceforge.net' WHERE FixedDownloadURL LIKE '%sourceforge%'; </code> Maybe others do this already, but I thought I would share in case I could save someone some time. Beavel
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.