From 1e09a99dd0d180064412d5cb2567716cbf0f9b6a Mon Sep 17 00:00:00 2001
From: 0xj0n1 <78429664+0xj0n1@users.noreply.github.com>
Date: Mon, 24 Mar 2025 19:58:18 +0100
Subject: [PATCH 1/5] upgrade bot.py to python3
---
bot.py | 288 +++++++++++++++++++++++++++++----------------------------
1 file changed, 147 insertions(+), 141 deletions(-)
diff --git a/bot.py b/bot.py
index 2bd526c..dad89cc 100644
--- a/bot.py
+++ b/bot.py
@@ -1,155 +1,161 @@
import os
import sys
try:
- import progressbar
+ import progressbar
except ImportError:
- print '[-] Failed to import progressbar .'
- print ' Run "pip install progressbar2" or "easy_install progressbar2" '
- print 'Use python2 to run this code '
- sys.exit(1)
+ print('[-] Failed to import progressbar.')
+ print(' Run "pip install progressbar2"')
+ sys.exit(1)
-import urllib2
+import urllib.request
-logo="""
+logo = """
______ _ __ ____ __
/ ____/___ ____ ___ ____ ___ (_) /_ / __ )____ / /_
/ / / __ \/ __ `__ \/ __ `__ \/ / __/_____/ __ / __ \/ __/
/ /___/ /_/ / / / / / / / / / / / / /_/_____/ /_/ / /_/ / /_
\____/\____/_/ /_/ /_/_/ /_/ /_/_/\__/ /_____/\____/\__/
- """
+ """
+
while(True):
- os.system('clear')
- print logo
- print "\n\t\tCREATED BY SPEEDX!!!"
- print "\n\n1 - Start BOT "
- print "2 - How To USE"
- print "3 - Exit"
- inp=raw_input('Enter OPTION > ')
- if not inp.find('1')==-1:
- url='https://www.google.com'
- try:
- urllib2.urlopen(url)
- except:
- print 'You Are Not Connected To Internet!!!\nPlease Connect To Internet To Continue....'
- print 'For Any Queries Join Me On WhatsApp!!!'
- print '\t Group Link: http://bit.do/speedxgit'
- print '\n Mail: ggspeedx29@gmail.com'
- print '\n YouTube Channel: https://www.youtube.com/c/GyanaTech'
- sys.exit(2)
- nc=input('Enter Number Of Commits To Do: ')
- gu=raw_input('Enter FULL Git Repository URL(including https://) : ')
- gn=raw_input('Enter Your Github UserName: ')
- ge=raw_input('Enter Your Github E-Mail: ')
- if nc <= 1:
- print '[!] Error Please Enter Number of Commits Greater Than 1 ...'
- raw_input('Press Enter To Continue...')
- continue
- if not gu.startswith('https'):
- print '\n\nALWAYS ENTER FULL REPOSITORY URL\n\tExample: https://github.com/TheSpeedX/commit-bot'
- raw_input('\n\nPress Enter To Continue...')
- continue
- if gu.endswith('.git'):
- gu=gu[0:len(gu)-4]
- if not urllib2.urlopen(gu).code == 200:
- print '[!] Wrong Repository URL !!!'
- print '\n\nALWAYS ENTER FULL REPOSITORY URL\n\tExample: https://github.com/TheSpeedX/commit-bot\n'
- print 'For Any Queries Join Me On WhatsApp!!!'
- print '\t Group Link: http://bit.do/speedxgit'
- print '\n Mail: ggspeedx29@gmail.com'
- print '\n YouTube Channel: https://www.youtube.com/c/GyanaTech'
- raw_input('\n\nPress Enter To Continue...')
- continue
- print '[+] Initializing....'
- if os.path.exists('test')==False:
- os.system('mkdir test')
- print '[+] Test Directory Not Found Creating One ....'
- else:
- os.system('cd test && rm -rf *')
- print '[+] Test Directory Found Using It ....'
- os.system('rm -rf .git>temp.speedx.xxxxx')
- print '[+] Preparing Directory...'
-# os.system('cd test && git init')
- print '[+] Pulling REMOTE Repository To Local Directory ...'
-# os.system('cd test && git pull')
- os.system('cd test && git clone '+gu)
- rn=gu[gu.rfind('/')+1:]
- os.system('mv -f test/'+rn+'/* test >>temp.speedx.xxxxx')
- os.system('mv -f test/'+rn+'/.??* test>>temp.speedx.xxxxx')
- os.system('cd test && git remote add origin '+gu)
- os.system('rm -f temp.speedx.xxxxx')
- os.system('cd test && rm -rf '+rn)
- print '[+] Repository Successfully Pulled '
- if not os.path.exists('test/README.md'):
- os.system('touch test/README.md')
- f=open('test/temp.speedx','w')
- f.write(chr(35)+' This Repo Was Commited By SpeedX\'s Commit Bot\n')
- f.write(chr(35)+chr(35)+chr(35)+' GITHUB LINK\n')
- f.write( ' Click Here \n\n')
- f.close()
-# os.system('cd test && echo '+chr(35)+' This Repo Was Commited By SpeedX\'s Commit Bot >temp.speedx')
-# os.system('cd test && echo '+chr(35)+chr(35)+chr(35)+' GITHUB LINK >>temp.speedx')
-# os.system('cd test && echo Click Here >>temp.speedx')
- os.system('cat test/temp.speedx test/README.md test/temp.speedx > test/tmp.xxxx ')
- os.system('cd test && mv tmp.xxxx README.md')
- os.system('cd test && rm temp.speedx')
- os.system('cd test && git config user.name \"'+gn+'\"')
- os.system('cd test && git config user.email \"'+ge+'\"')
- os.system('cd test && git add .')
- print '[+] Directory Initialized '
- print '[+] Starting Commits To Gain Contribution...'
- for i in progressbar.progressbar(range(nc-1),redirect_stdout=True):
- os.system('echo THIS IS A COMMIT BY SPEEDX COMMIT BOT >> test/temp.speedx.xxx')
- os.system('cd test && git add temp.speedx.xxx . >/dev/null')
-# print '[-] Commit Number: '+str(i+1)
- os.system('cd test && git commit -m \'Commit By SpeedX Bot!!! \'>/dev/null')
- print '\n[+] Cleaning Repository...'
- os.system('rm test/temp.speedx.xxx')
- os.system('cd test && git gc')
- print '[+] Repository Cleaned '
- print '[-] Final Commit'
- os.system('cd test && git add .')
- os.system('cd test && git commit -m \'Commit By SpeedX Bot!!! \'')
- print '[+] Pushing Repo To Remote URL: '+gu
- os.system('cd test && git push -u --force origin master')
- print '[+] '+str(nc)+' Commits Done ... \n\t\tYou Can See it in your Contributions Soon\n\tIf You Don\'t Check Notes in README.md'
- print '[+] Closing Bot....'
- break
- elif not inp.find('2')==-1:
- os.system('clear')
- print ' HELP'
- print ' -----------------------------'
- print logo+'\n'
- print 'This is A COMMIT BOT Created By SpeedX to get CONTRIBUTIONS For FREE...'
- print 'This Script Generates Fake Commits And is Very Fast....'
- print '\nALWAYS USE AN EMPTY REPOSITORY WITH AN INITIAL COMMIT FOR COMMIT BOT!!\n'
- print 'We Take The Following Inputs:\n'
- print '\t Number Of Commits - To Generate That Amount Of Fake Commits '
- print '\t Repository URL - To Push And Pull Code To/From That Repository(Must Be Yours)'
- print '\t Github Username - Sometimes Github Asks For UserName (Enter A Real One) ...'
- print '\t Github Email - Sometimes Github Asks For Email (Enter A Real One) ...'
- print '\nWe Never Keep You Github Username, Email or Password... '
- print 'If You Don\'t Trust Us Then Push The Repository Yourself After Successful Commits By:'
- print '\t\tcd test && git push -u --force origin master'
- print '\n\tFor More Details Check README.md\nHope You Liked This Project!!!'
- print 'You can Check My Other Projects Here: https://github.com/TheSpeedX'
- print 'For Any Queries Join Me On WhatsApp!!!'
- print '\t Group Link: http://bit.do/speedxgit'
- print '\n Mail: ggspeedx29@gmail.com'
- print '\n YouTube Channel: https://www.youtube.com/c/GyanaTech'
- raw_input('\n\nPress Enter To Continue...')
- elif not inp.find('3')==-1:
- break
- else:
- print "Invalid Input !!!\nTry Again!!!\n Press Enter To Continue..."
- raw_input()
+ os.system('clear')
+ print(logo)
+ print("\n\t\tCREATED BY SPEEDX | UPGRADED by 0xj0n1")
+ print("\n\n1 - Start BOT ")
+ print("2 - How To USE")
+ print("3 - Exit")
+ inp = input('Enter OPTION > ')
+ if '1' in inp:
+ url = 'https://www.google.com'
+ try:
+ urllib.request.urlopen(url)
+ except:
+ print('You Are Not Connected To Internet!!!\nPlease Connect To Internet To Continue....')
+ print('For Any Queries Join Me On WhatsApp!!!')
+ print('\t Group Link: http://bit.do/speedxgit')
+ print('\n Mail: ggspeedx29@gmail.com')
+ print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
+ sys.exit(2)
+ try:
+ nc = int(input('Enter Number Of Commits To Do: '))
+ except ValueError:
+ print('[!] Error Please Enter A Valid Number...')
+ input('Press Enter To Continue...')
+ continue
+ gu = input('Enter FULL Git Repository URL (including https://): ')
+ gn = input('Enter Your Github UserName: ')
+ ge = input('Enter Your Github E-Mail: ')
+ if nc <= 1:
+ print('[!] Error Please Enter Number of Commits Greater Than 1 ...')
+ input('Press Enter To Continue...')
+ continue
+ if not gu.startswith('https'):
+ print('\n\nALWAYS ENTER FULL REPOSITORY URL\n\tExample: https://github.com/TheSpeedX/commit-bot')
+ input('\n\nPress Enter To Continue...')
+ continue
+ if gu.endswith('.git'):
+ gu = gu[:-4]
+ try:
+ if urllib.request.urlopen(gu).getcode() != 200:
+ raise Exception
+ except:
+ print('[!] Wrong Repository URL !!!')
+ print('\n\nALWAYS ENTER FULL REPOSITORY URL\n\tExample: https://github.com/TheSpeedX/commit-bot\n')
+ print('For Any Queries Join Me On WhatsApp!!!')
+ print('\t Group Link: http://bit.do/speedxgit')
+ print('\n Mail: ggspeedx29@gmail.com')
+ print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
+ input('\n\nPress Enter To Continue...')
+ continue
+ print('[+] Initializing....')
+ if not os.path.exists('test'):
+ os.system('mkdir test')
+ print('[+] Test Directory Not Found Creating One ....')
+ else:
+ os.system('cd test && rm -rf *')
+ print('[+] Test Directory Found Using It ....')
+ os.system('rm -rf .git>temp.speedx.xxxxx')
+ print('[+] Preparing Directory...')
+# os.system('cd test && git init')
+ print('[+] Pulling REMOTE Repository To Local Directory ...')
+# os.system('cd test && git pull')
+ os.system('cd test && git clone ' + gu)
+ rn = gu[gu.rfind('/') + 1:]
+ os.system('mv -f test/' + rn + '/* test >>temp.speedx.xxxxx')
+ os.system('mv -f test/' + rn + '/.??* test>>temp.speedx.xxxxx')
+ os.system('cd test && git remote add origin ' + gu)
+ os.system('rm -f temp.speedx.xxxxx')
+ os.system('cd test && rm -rf ' + rn)
+ print('[+] Repository Successfully Pulled ')
+ if not os.path.exists('test/README.md'):
+ os.system('touch test/README.md')
+ with open('test/temp.speedx', 'w') as f:
+ f.write(chr(35) + ' This Repo Was Commited By SpeedX\'s Commit Bot\n')
+ f.write(chr(35) + chr(35) + chr(35) + ' GITHUB LINK\n')
+ f.write(' Click Here \n\n')
+# os.system('cd test && echo ' + chr(35) + ' This Repo Was Commited By SpeedX\'s Commit Bot >temp.speedx')
+# os.system('cd test && echo ' + chr(35) + chr(35) + chr(35) + ' GITHUB LINK >>temp.speedx')
+# os.system('cd test && echo Click Here >>temp.speedx')
+ os.system('cat test/temp.speedx test/README.md test/temp.speedx > test/tmp.xxxx ')
+ os.system('cd test && mv tmp.xxxx README.md')
+ os.system('cd test && rm temp.speedx')
+ os.system('cd test && git config user.name \"' + gn + '\"')
+ os.system('cd test && git config user.email \"' + ge + '\"')
+ os.system('cd test && git add .')
+ print('[+] Directory Initialized ')
+ print('[+] Starting Commits To Gain Contribution...')
+ for i in progressbar.progressbar(range(nc - 1), redirect_stdout=True):
+ os.system('echo THIS IS A COMMIT BY SPEEDX COMMIT BOT >> test/temp.speedx.xxx')
+ os.system('cd test && git add temp.speedx.xxx . >/dev/null')
+# print '[-] Commit Number: ' + str(i + 1)
+ os.system('cd test && git commit -m \'Commit By SpeedX Bot!!! \' >/dev/null')
+ print('\n[+] Cleaning Repository...')
+ os.system('rm test/temp.speedx.xxx')
+ os.system('cd test && git gc')
+ print('[+] Repository Cleaned ')
+ print('[-] Final Commit')
+ os.system('cd test && git add .')
+ os.system('cd test && git commit -m \'Commit By SpeedX Bot!!! \'')
+ print('[+] Pushing Repo To Remote URL: ' + gu)
+ os.system('cd test && git push -u --force origin master')
+ print('[+] ' + str(nc) + ' Commits Done ... \n\t\tYou Can See it in your Contributions Soon\n\tIf You Don\'t Check Notes in README.md')
+ print('[+] Closing Bot....')
+ break
+ elif '2' in inp:
+ os.system('clear')
+ print(' HELP')
+ print(' -----------------------------')
+ print(logo + '\n')
+ print('This is A COMMIT BOT Created By SpeedX to get CONTRIBUTIONS For FREE...')
+ print('This Script Generates Fake Commits And is Very Fast....')
+ print('\nALWAYS USE AN EMPTY REPOSITORY WITH AN INITIAL COMMIT FOR COMMIT BOT!!\n')
+ print('We Take The Following Inputs:\n')
+ print('\t Number Of Commits - To Generate That Amount Of Fake Commits ')
+ print('\t Repository URL - To Push And Pull Code To/From That Repository(Must Be Yours)')
+ print('\t Github Username - Sometimes Github Asks For UserName (Enter A Real One) ...')
+ print('\t Github Email - Sometimes Github Asks For Email (Enter A Real One) ...')
+ print('\nWe Never Keep You Github Username, Email or Password... ')
+ print('If You Don\'t Trust Us Then Push The Repository Yourself After Successful Commits By:')
+ print('\t\tcd test && git push -u --force origin master')
+ print('\n\tFor More Details Check README.md\nHope You Liked This Project!!!')
+ print('You can Check My Other Projects Here: https://github.com/TheSpeedX')
+ print('For Any Queries Join Me On WhatsApp!!!')
+ print('\t Group Link: http://bit.do/speedxgit')
+ print('\n Mail: ggspeedx29@gmail.com')
+ print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
+ input('\n\nPress Enter To Continue...')
+ elif '3' in inp:
+ break
+ else:
+ print("Invalid Input !!!\nTry Again!!!\n Press Enter To Continue...")
+ input()
-print logo
-print '\nThanks For Using My Project'
-print 'PLEASE LEAVE A STAR IT, FORK IT, WATCH IT IF YOU LIKE IT'
-print 'You can Check My Other Projects Here: https://github.com/TheSpeedX'
-print 'For Any Queries Join Me On WhatsApp!!!'
-print '\t Group Link: http://bit.do/thespeedx'
-print '\n Mail: ggspeedx29@gmail.com'
-print '\n YouTube Channel: https://www.youtube.com/c/GyanaTech'
+print(logo)
+print('\nThanks For Using My Project')
+print('PLEASE LEAVE A STAR IT, FORK IT, WATCH IT IF YOU LIKE IT')
+print('You can Check My Other Projects Here: https://github.com/TheSpeedX')
+print('For Any Queries Join Me On WhatsApp!!!')
+print('\t Group Link: http://bit.do/thespeedx')
+print('\n Mail: ggspeedx29@gmail.com')
+print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
sys.exit(0)
-
From 37b7817ee13abf3046f9b6ad4b1d9867b9c00884 Mon Sep 17 00:00:00 2001
From: 0xj0n1 <78429664+0xj0n1@users.noreply.github.com>
Date: Mon, 24 Mar 2025 20:00:57 +0100
Subject: [PATCH 2/5] Update bot.py
---
bot.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bot.py b/bot.py
index dad89cc..dbc02b3 100644
--- a/bot.py
+++ b/bot.py
@@ -3,8 +3,8 @@
try:
import progressbar
except ImportError:
- print('[-] Failed to import progressbar.')
- print(' Run "pip install progressbar2"')
+ print('Failed to import progressbar.')
+ print('Run "pip install progressbar2"')
sys.exit(1)
import urllib.request
From 9b9fe7f3061f1133451c100c90dd1d61958f940b Mon Sep 17 00:00:00 2001
From: 0xj0n1 <78429664+0xj0n1@users.noreply.github.com>
Date: Mon, 24 Mar 2025 20:01:34 +0100
Subject: [PATCH 3/5] Update bot.py
---
bot.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/bot.py b/bot.py
index dbc02b3..5752b82 100644
--- a/bot.py
+++ b/bot.py
@@ -2,12 +2,7 @@
import sys
try:
import progressbar
-except ImportError:
- print('Failed to import progressbar.')
- print('Run "pip install progressbar2"')
- sys.exit(1)
-
-import urllib.request
+ import urllib.request
logo = """
______ _ __ ____ __
From 3ae71ef11ca4852ac883dd8aaaf79ed59b52a599 Mon Sep 17 00:00:00 2001
From: 0xj0n1 <78429664+0xj0n1@users.noreply.github.com>
Date: Mon, 24 Mar 2025 20:34:08 +0100
Subject: [PATCH 4/5] Update bot.py
---
bot.py | 159 ++++++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 118 insertions(+), 41 deletions(-)
diff --git a/bot.py b/bot.py
index 5752b82..e14b286 100644
--- a/bot.py
+++ b/bot.py
@@ -1,25 +1,39 @@
import os
import sys
+import urllib.request
+import platform
+
+# Bestimme das Betriebssystem
+system = platform.system()
+
try:
import progressbar
- import urllib.request
+except ImportError:
+ print("Das 'progressbar2' Modul ist nicht installiert. Bitte installieren Sie es mit 'pip install progressbar2'.")
+ sys.exit(1)
-logo = """
+logo = r"""
______ _ __ ____ __
/ ____/___ ____ ___ ____ ___ (_) /_ / __ )____ / /_
/ / / __ \/ __ `__ \/ __ `__ \/ / __/_____/ __ / __ \/ __/
/ /___/ /_/ / / / / / / / / / / / / /_/_____/ /_/ / /_/ / /_
-\____/\____/_/ /_/ /_/_/ /_/ /_/_/\__/ /_____/\____/\__/
- """
+\____/\____/_/ /_/ /_/_/ /_/ /_/_/\__/ /_____/\____/\__/ lol
+"""
-while(True):
- os.system('clear')
+while True:
+ # Bildschirm leeren - plattformabhängig
+ if system == 'Windows':
+ os.system('cls')
+ else:
+ os.system('clear')
+
print(logo)
print("\n\t\tCREATED BY SPEEDX | UPGRADED by 0xj0n1")
print("\n\n1 - Start BOT ")
print("2 - How To USE")
print("3 - Exit")
inp = input('Enter OPTION > ')
+
if '1' in inp:
url = 'https://www.google.com'
try:
@@ -31,25 +45,31 @@
print('\n Mail: ggspeedx29@gmail.com')
print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
sys.exit(2)
+
try:
nc = int(input('Enter Number Of Commits To Do: '))
except ValueError:
print('[!] Error Please Enter A Valid Number...')
input('Press Enter To Continue...')
continue
+
gu = input('Enter FULL Git Repository URL (including https://): ')
gn = input('Enter Your Github UserName: ')
ge = input('Enter Your Github E-Mail: ')
+
if nc <= 1:
print('[!] Error Please Enter Number of Commits Greater Than 1 ...')
input('Press Enter To Continue...')
continue
+
if not gu.startswith('https'):
print('\n\nALWAYS ENTER FULL REPOSITORY URL\n\tExample: https://github.com/TheSpeedX/commit-bot')
input('\n\nPress Enter To Continue...')
continue
+
if gu.endswith('.git'):
gu = gu[:-4]
+
try:
if urllib.request.urlopen(gu).getcode() != 200:
raise Exception
@@ -62,62 +82,117 @@
print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
input('\n\nPress Enter To Continue...')
continue
+
print('[+] Initializing....')
+
+ # Windows-kompatible Befehle
if not os.path.exists('test'):
- os.system('mkdir test')
+ os.makedirs('test', exist_ok=True)
print('[+] Test Directory Not Found Creating One ....')
else:
- os.system('cd test && rm -rf *')
+ if system == 'Windows':
+ os.system('cd test && del /s /q *')
+ else:
+ os.system('cd test && rm -rf *')
print('[+] Test Directory Found Using It ....')
- os.system('rm -rf .git>temp.speedx.xxxxx')
+
print('[+] Preparing Directory...')
-# os.system('cd test && git init')
print('[+] Pulling REMOTE Repository To Local Directory ...')
-# os.system('cd test && git pull')
- os.system('cd test && git clone ' + gu)
+
+ # Git-Befehle sind plattformunabhängig
+ os.system(f'cd test && git clone {gu}')
rn = gu[gu.rfind('/') + 1:]
- os.system('mv -f test/' + rn + '/* test >>temp.speedx.xxxxx')
- os.system('mv -f test/' + rn + '/.??* test>>temp.speedx.xxxxx')
- os.system('cd test && git remote add origin ' + gu)
- os.system('rm -f temp.speedx.xxxxx')
- os.system('cd test && rm -rf ' + rn)
- print('[+] Repository Successfully Pulled ')
+
+ # Dateien von Unterverzeichnis ins Hauptverzeichnis verschieben
+ if system == 'Windows':
+ os.system(f'xcopy /E /Y test\\{rn}\\* test\\ > NUL')
+ os.system(f'xcopy /E /Y test\\{rn}\\.* test\\ > NUL 2>&1')
+ else:
+ os.system(f'mv -f test/{rn}/* test 2>/dev/null')
+ os.system(f'mv -f test/{rn}/.??* test 2>/dev/null')
+
+ os.system(f'cd test && git remote add origin {gu}')
+
+ if system == 'Windows':
+ os.system(f'rd /s /q test\\{rn}')
+ else:
+ os.system(f'cd test && rm -rf {rn}')
+
+ print('[+] Repository Successfully Pulled')
+
if not os.path.exists('test/README.md'):
- os.system('touch test/README.md')
+ with open('test/README.md', 'w') as f:
+ f.write('')
+
with open('test/temp.speedx', 'w') as f:
- f.write(chr(35) + ' This Repo Was Commited By SpeedX\'s Commit Bot\n')
- f.write(chr(35) + chr(35) + chr(35) + ' GITHUB LINK\n')
+ f.write('# This Repo Was Committed By SpeedX\'s Commit Bot\n')
+ f.write('### GITHUB LINK\n')
f.write(' Click Here \n\n')
-# os.system('cd test && echo ' + chr(35) + ' This Repo Was Commited By SpeedX\'s Commit Bot >temp.speedx')
-# os.system('cd test && echo ' + chr(35) + chr(35) + chr(35) + ' GITHUB LINK >>temp.speedx')
-# os.system('cd test && echo Click Here >>temp.speedx')
- os.system('cat test/temp.speedx test/README.md test/temp.speedx > test/tmp.xxxx ')
- os.system('cd test && mv tmp.xxxx README.md')
- os.system('cd test && rm temp.speedx')
- os.system('cd test && git config user.name \"' + gn + '\"')
- os.system('cd test && git config user.email \"' + ge + '\"')
+
+ # Dateien zusammenführen
+ if system == 'Windows':
+ try:
+ with open('test/README.md', 'r', encoding='utf-8', errors='ignore') as readme:
+ content = readme.read()
+ with open('test/temp.speedx', 'r', encoding='utf-8') as temp:
+ temp_content = temp.read()
+ with open('test/tmp.xxxx', 'w', encoding='utf-8') as tmp:
+ tmp.write(temp_content + content + temp_content)
+ os.system('cd test && copy /Y tmp.xxxx README.md')
+ os.system('cd test && del temp.speedx tmp.xxxx')
+ except Exception as e:
+ print(f"Fehler beim Bearbeiten der README.md: {e}")
+ print("Erstelle eine neue README.md...")
+ with open('test/README.md', 'w', encoding='utf-8') as f:
+ f.write('# Repository bearbeitet mit Commit-Bot\n')
+ else:
+ os.system('cat test/temp.speedx test/README.md test/temp.speedx > test/tmp.xxxx')
+ os.system('cd test && mv tmp.xxxx README.md')
+ os.system('cd test && rm temp.speedx')
+
+ os.system(f'cd test && git config user.name "{gn}"')
+ os.system(f'cd test && git config user.email "{ge}"')
os.system('cd test && git add .')
- print('[+] Directory Initialized ')
+
+ print('[+] Directory Initialized')
print('[+] Starting Commits To Gain Contribution...')
+
for i in progressbar.progressbar(range(nc - 1), redirect_stdout=True):
- os.system('echo THIS IS A COMMIT BY SPEEDX COMMIT BOT >> test/temp.speedx.xxx')
- os.system('cd test && git add temp.speedx.xxx . >/dev/null')
-# print '[-] Commit Number: ' + str(i + 1)
- os.system('cd test && git commit -m \'Commit By SpeedX Bot!!! \' >/dev/null')
+ if system == 'Windows':
+ with open('test/temp.speedx.xxx', 'a') as f:
+ f.write('THIS IS A COMMIT BY SPEEDX COMMIT BOT\n')
+ os.system('cd test && git add temp.speedx.xxx . > NUL 2>&1')
+ os.system('cd test && git commit -m "Commit By SpeedX Bot!!!" > NUL 2>&1')
+ else:
+ os.system('echo "THIS IS A COMMIT BY SPEEDX COMMIT BOT" >> test/temp.speedx.xxx')
+ os.system('cd test && git add temp.speedx.xxx . > /dev/null')
+ os.system('cd test && git commit -m \'Commit By SpeedX Bot!!!\' > /dev/null')
+
print('\n[+] Cleaning Repository...')
- os.system('rm test/temp.speedx.xxx')
+ if system == 'Windows':
+ os.system('del test\\temp.speedx.xxx')
+ else:
+ os.system('rm test/temp.speedx.xxx')
+
os.system('cd test && git gc')
- print('[+] Repository Cleaned ')
+ print('[+] Repository Cleaned')
print('[-] Final Commit')
+
os.system('cd test && git add .')
- os.system('cd test && git commit -m \'Commit By SpeedX Bot!!! \'')
+ os.system('cd test && git commit -m "Commit By SpeedX Bot!!!"')
print('[+] Pushing Repo To Remote URL: ' + gu)
os.system('cd test && git push -u --force origin master')
- print('[+] ' + str(nc) + ' Commits Done ... \n\t\tYou Can See it in your Contributions Soon\n\tIf You Don\'t Check Notes in README.md')
+
+ print(f'[+] {nc} Commits Done ... \n\t\tYou Can See it in your Contributions Soon\n\tIf You Don\'t Check Notes in README.md')
print('[+] Closing Bot....')
break
+
elif '2' in inp:
- os.system('clear')
+ if system == 'Windows':
+ os.system('cls')
+ else:
+ os.system('clear')
+
print(' HELP')
print(' -----------------------------')
print(logo + '\n')
@@ -125,11 +200,11 @@
print('This Script Generates Fake Commits And is Very Fast....')
print('\nALWAYS USE AN EMPTY REPOSITORY WITH AN INITIAL COMMIT FOR COMMIT BOT!!\n')
print('We Take The Following Inputs:\n')
- print('\t Number Of Commits - To Generate That Amount Of Fake Commits ')
+ print('\t Number Of Commits - To Generate That Amount Of Fake Commits')
print('\t Repository URL - To Push And Pull Code To/From That Repository(Must Be Yours)')
print('\t Github Username - Sometimes Github Asks For UserName (Enter A Real One) ...')
print('\t Github Email - Sometimes Github Asks For Email (Enter A Real One) ...')
- print('\nWe Never Keep You Github Username, Email or Password... ')
+ print('\nWe Never Keep Your Github Username, Email or Password...')
print('If You Don\'t Trust Us Then Push The Repository Yourself After Successful Commits By:')
print('\t\tcd test && git push -u --force origin master')
print('\n\tFor More Details Check README.md\nHope You Liked This Project!!!')
@@ -139,8 +214,10 @@
print('\n Mail: ggspeedx29@gmail.com')
print('\n YouTube Channel: https://www.youtube.com/c/GyanaTech')
input('\n\nPress Enter To Continue...')
+
elif '3' in inp:
break
+
else:
print("Invalid Input !!!\nTry Again!!!\n Press Enter To Continue...")
input()
From c17481173404d7ef8dcda7a706d7a1b985a28297 Mon Sep 17 00:00:00 2001
From: 0xj0n1 <78429664+0xj0n1@users.noreply.github.com>
Date: Mon, 24 Mar 2025 20:35:50 +0100
Subject: [PATCH 5/5] Update bot.py
---
bot.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bot.py b/bot.py
index e14b286..9dee982 100644
--- a/bot.py
+++ b/bot.py
@@ -162,11 +162,11 @@
with open('test/temp.speedx.xxx', 'a') as f:
f.write('THIS IS A COMMIT BY SPEEDX COMMIT BOT\n')
os.system('cd test && git add temp.speedx.xxx . > NUL 2>&1')
- os.system('cd test && git commit -m "Commit By SpeedX Bot!!!" > NUL 2>&1')
+ os.system('cd test && git commit -m "I am a $wagger!" > NUL 2>&1')
else:
os.system('echo "THIS IS A COMMIT BY SPEEDX COMMIT BOT" >> test/temp.speedx.xxx')
os.system('cd test && git add temp.speedx.xxx . > /dev/null')
- os.system('cd test && git commit -m \'Commit By SpeedX Bot!!!\' > /dev/null')
+ os.system('cd test && git commit -m \'I am a $wagger!\' > /dev/null')
print('\n[+] Cleaning Repository...')
if system == 'Windows':
@@ -179,7 +179,7 @@
print('[-] Final Commit')
os.system('cd test && git add .')
- os.system('cd test && git commit -m "Commit By SpeedX Bot!!!"')
+ os.system('cd test && git commit -m "I am a $wagger!"')
print('[+] Pushing Repo To Remote URL: ' + gu)
os.system('cd test && git push -u --force origin master')