Jump to content
Ketarin forum

Yuri-Tech

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by Yuri-Tech

  1. The batch file might be used on a flash drive and running on different systems with different regional settings and the date/time variables could vary. One possible solution is using powershell: Get-Date -Format yyyy-MM-dd_HHmmss Untested edit: ketarin_fulldb.bat (opens ketarin with the pre-defined drive letter) @ECHO OFF SET ketarinstarter=%SYSTEMDRIVE%\ketarin.bat SET pshellexe=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe cd /d %~dp0 IF EXIST %pshellexe% ( FOR /F %%G in ('%pshellexe% -Command "Get-Date -Format yyyy-MM-dd_HHmmss"') DO SET datetime=%%G ) ECHO . ECHO STARTING KETARIN... START ketarin.exe /database=all.db /export=Backup\all-%datetime%.xml PING -n 5 localhost > NUL START ketarin.exe /database=all.db /log=Logs\log-%datetime%.log PING -n 5 localhost > NUL REN all.db_*.bak all.db_%datetime%.bak MOVE /Y all.db_*.bak Backup DEL /S selectdrive.txt DEL /S %ketarinstarter% START "" ".\Downloads" EXIT
  2. Thanks shawn, I'll test it soon, Just to clarify, there is an official MEGAcmd repository (https://github.com/meganz/MEGAcmd) and the one I found https://github.com/t3rm1n4l/megacmd which are different projects as it seems.
  3. I found an open source project to download from MEGA cloud (untested). https://github.com/t3rm1n4l/megacmd (Instructions are in Readme.md, Windows binary in the "Releases" Link)
  4. I'm less familiar with the process but it seems it is trying to find the local file to hash and compare it. Does this file exists in this folder? "D:\Unduhan\Jaringan\Mikrotik\Bugfix\chr-6.40.7.img.zip"
  5. I was sure there was a donation button in the past. Where did it go? Or should you make it? Way the go I love Ketarin!:) keep up the good work
  6. MAPJe71 thanks for your answer and the regex. Actually I already used the download page. I asked if there's a better way scraping the version number from the changelog for 2 reasons: 1) to learn and use it for other sites with cleaner approach, so it won't have future glitches. 2) Whereveris possible, I use 2 variables for the version number and compare them with a script without coding so it'll be easier to identify website changes that may break something. I'm looking for a solution to make it cleaner, for example reggexing this url for version: https://justgetflux.com/update/v4/windows-download.json When I grabbed it the version wouldn't appear in the main download site (https://justgetflux.com/) but if you go to site inspection -> Sources -> Page -> update/v4 there's the json file with the version had to really dig it up and looking for explanation or a simple way for scraping it. Any suggestion following this way?
  7. number #2 in shawn's post seems to be the issue. Also check your user agent and spoof refferer to prevent repititive server calls, their firewall might block them.- Sha hashing should not have any issues in comparing with lower case letters so that shouldn't be it. I like these mikrotik equipment:)
  8. Thank you MAPJe71, Thats a one clever regular expression. Would you mind explaining what is your procedure how you approach the problem to solve it, (if you have any:) Actually, I thought there should be a better way to access the version number, If anyone has any idea using site inspection would be great and mind enriching. If there is no easy method should be also great to know.
  9. Can use some help please, as I don't have a lot of experience in .Net regex and javascript/HTML5. I'm tring to get SUMo version from the changlelog url (and not the download url): {ChangelogURL} http://www.kcsoftwares.com/bugs/changelog_page.php?project_id=11 {VersionFromChangeLogURL} regex I use with success: (?<=changelog_page\.php\?project_id\=11\"\>.*?SUMo.*?changelog_page\.php\?version_id\=\d+\"\>).*?([\d\.]+).*?(?=<\/) I wonder if there is a safer way and performance wise to scrape the version number. I tried using chromium "inspect url" F12 / Ctrl+Shift+I, I can see there is a reference to this site: http://www.kcsoftwares.com/bugs/changelog_page.php?version_id=954 which has less input for the regex to grab from but I can't get how to scrape the `id` div data which currently equals to `954`. Maybe there's also a way to grab the version number which post data or json data? Hope someone can help me figuring out this example so I'll be able to do it next time. Thank you
  10. Hey bernicesmith. I'm also IT and pentester. First post after about 10+ years using the forums and Ketarin on and off. Nice to meet you mate
  11. hey dunry and Nooban, You can try this: ..\{category}\{appname:regexreplace: (Portable)| (x86)| (x64)| \(.*\):}\{appname} V{version}.{url:ext} it will even if you move the ketarin and downloads to another path in the future (ex: E:\new2019\Soft\Ketarin) Explanation: ".." - will change the current path to one upper in the directory hirarchy tree "{category}" - will change the path to the one sotred in the Category variable directory and create one if not existing "{appname:regexreplace:\sPortable|\sx86|\sx64|\s\(.*\):}" - will change the path to the Application Name variable, while cutting the following: " Portable" or " portable" or x64 or X64 or x86 or X86 and everything in parenthesis including the parenthesis with space before " (example)" "{appname}" - first part of filename taken from the Application Name variable. "{version}" - second part of filename taken from the version variable "{url.ext}" - the extension of the filename, taken from the extension of the url to download from. Example: Application name: LibreOffice (Stable Version) LibreOffice_5.4.5_Win_x64.msi will be saved as: USBStick:\Soft\OfficeSoftware\LibreOffice\LibreOffice (Stable Version) V5.4.5.msi this wiki link may also be useful for you: https://wiki.ketarin.org/index.php/Portability hope you'll have good use in those examples:)
×
×
  • 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.