-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto_update
More file actions
15 lines (15 loc) · 941 Bytes
/
auto_update
File metadata and controls
15 lines (15 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//==========================================================
autoupdate = include_lib("/lib/aptclient.so")
if not autoupdate then
aptclient = include_lib(current_path + "/aptclient.so")
end if
if not autoupdate then exit("Error: Missing <b>apt</b> lib!")
//==========================================================
autoupdate.add_repo("[ip]",1542) //add repo address to [sources.txt] located in /etc/apt/ folder
autoupdate.update //updates added repo address to make the repo address work for updateing libs
//==========================================================
autoupdate.check_upgrade("/lib/metaxploit.so") //checks for metaxploit.so update and then updates it
autoupdate.check_upgrade("/lib/crypto.so") //checks for crypto.so update and then updates it
//==========================================================
autoupdate.del_repo("[ip]") //deletes repo address
//==========================================================