Posts

Showing posts from January, 2022

Calculator bat file commands

 calculator app using variables @echo off :start set /p MATH=Input_values? set /a RESULT=%MATH% echo %RESULT% if %RESULT%==5 start app.exe pause cls goto start Explanations set /p MATH=Input_values?  to initiate a maths calculation set /a RESULT=%MATH%   to show the answers if %RESULT%==5 start app.exe  to perform another process. This is not necessary pause freeze the screen to move next command. avoid screen exit goto start to search the word next to goto and re do the process what is written below after the search done on a word

OSQUERY sql

 How to see all tables heading .tables How to see all columns fom schema . schema tablename   How to see system info select * from system_info; How to see users select username,uid,shell from users; How to see a process with multi table join and suspesious and their services select p.name,p.path,pp.name as parentname, pp.path as parentpath from processes as p left outer join processes as pp on p.parent=pp.pid order by p.name; How to check process other than services are vulnerable select name,pid,path,display_name from services where start_type = 'auto_start' and path not like 'C:\Windows\System32\svchost.exe -k %'; How to see install location for program select name,install_location from programs; How to see specific installed apps select name,install_location from programs where name like '%brave%'; How to see user directory select uid,username,shell,directory from users; how to see auto startup select name,path,source,status from startup_items where path n...