Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehrdad committed Sep 10, 2017
1 parent d2f6980 commit ffc7688
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions FileBeast.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ def checkforupdate():
fetchfile(urls['python'], latestfile)
if getchecksum(latestfile).encode('utf-8') == checksum:
if os.name in ('nt', 'dos'):
subprocess.Popen('ping 127.0.0.1 -n 2 > nul && del %s && rename %s FileBeast.py '
'&& python FileBeast.py' % (sys.argv[0], latestfile), shell=True)
subprocess.Popen('ping 127.0.0.1 -n 2 > nul && del %s && rename %s FileBeast.py'
% (sys.argv[0], latestfile), shell=True)
elif os.name in ('linux', 'posix'):
subprocess.Popen('ping 127.0.0.1 -c 2 >> /dev/null && rm -rf %s && mv %s FileBeast.py '
'&& python3 FileBeast.py' % (sys.argv[0], latestfile), shell=True)
subprocess.Popen('ping 127.0.0.1 -c 2 >> /dev/null && rm -rf %s && mv %s FileBeast.py'
% (sys.argv[0], latestfile), shell=True)
else:
os.remove(sys.argv[0])
os.rename(latestfile, 'FileBeast.py')
Expand All @@ -302,8 +302,8 @@ def checkforupdate():
latestfile = 'latest.exe'
fetchfile(urls['win32'], latestfile)
if getchecksum(latestfile).encode('utf-8') == checksum:
subprocess.Popen('ping 127.0.0.1 -n 2 > nul && del %s && rename %s FileBeast.exe '
'&& start FileBeast.exe' % (sys.argv[0], latestfile), shell=True)
subprocess.Popen('ping 127.0.0.1 -n 2 > nul && del %s && rename %s FileBeast.exe'
% (sys.argv[0], latestfile), shell=True)
sys.exit()
else:
print(Fore.RED + '[-] Error while updating please try again')
Expand All @@ -313,9 +313,8 @@ def checkforupdate():
latestfile = 'latest'
fetchfile(urls['linux'], latestfile)
if getchecksum(latestfile).encode('utf-8') == checksum:
subprocess.Popen('ping 127.0.0.1 -c 2 >> /dev/null && rm -rf %s && mv %s FileBeast '
'&& chmod +x FileBeast '
'&& ./FileBeast' % (sys.argv[0], latestfile), shell=True)
subprocess.Popen('ping 127.0.0.1 -c 2 >> /dev/null && rm -rf %s && mv %s FileBeast'
% (sys.argv[0], latestfile), shell=True)
sys.exit()
else:
print(Fore.RED + '[-] Error while updating please try again')
Expand Down
2 changes: 1 addition & 1 deletion checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
83c8c171acd1e7acd11d9e61e0e7f722e7fbe29805e6f0679fb47cc7b5adff56
fcc724ac770fae5e3c38c6a47f6257b2951195c335d81fed3f82a55aad76767e
Binary file modified release/Linux/FileBeast
Binary file not shown.
2 changes: 1 addition & 1 deletion release/Linux/checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ebd587a88e4f542c08c1c4ce4e8e44e06a1524558734f8287e97cd2368d1ba2f
4ac1f22e4cb3223cf26a9c777e03a4322aa9890e515e1989d87a064bfecc10c3
Binary file modified release/Windows/FileBeast.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion release/Windows/checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61277134d43fcf4d9e725f6864f5e07f48a92c26865541146c8e12bde1c1c928
b1359230142bca6c011bf1dd484e64cbca533e6a0b37f08fa349ffd22538a3aa

0 comments on commit ffc7688

Please sign in to comment.