Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func ReloginProgram(cl *oop.Account, to string) error {
- oop.Clearcache()
- SaveData()
- putSquad(cl, to)
- file, err := osext.Executable()
- if err != nil {fmt.Println("Reboot1", err);return err}
- err = syscall.Exec(file, os.Args, os.Environ())
- if err != nil {fmt.Println("Reboot2", err);return err}
- return nil
- }
- ////
- } else if strings.HasPrefix(txt, "updateos") || strings.HasPrefix(txt, data.KohCmd["updateos"]) && data.KohCmd["updateos"] !="" {
- if getAccess(ctime,cl.Mid) {
- result := strings.Split((text), ":")
- if len(result) != 1{
- res := result[1]
- if res == "android" {
- exec.Command("bash","-c","cd /root/rary/allos && cp auth_android.go /root/rary/Library/oop/auth.go").Output()
- cl.SendMessage(to, "โฐ ๐ฆ๐๐๐๐ฒ๐บ "+res+" ๐จ๐ฝ๐ฑ๐ฎ๐๐ถ๐ป๐ด...")
- exec.Command("bash","-c","cd /root/rary && go build nrm.go").Output()
- cl.SendMessage(to, "โฐ ๐จ๐ฝ๐ฑ๐ฎ๐๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ญ๐")
- go ReloginProgram(cl,to)
- } else if res == "ios" {
- exec.Command("bash","-c","cd /root/rary/allos && cp auth_ios.go /root/rary/Library/oop/auth.go").Output()
- cl.SendMessage(to, "โฐ ๐ฆ๐๐๐๐ฒ๐บ "+res+" ๐จ๐ฝ๐ฑ๐ฎ๐๐ถ๐ป๐ด...")
- exec.Command("bash","-c","cd /root/rary && go build nrm.go").Output()
- cl.SendMessage(to, "โฐ ๐จ๐ฝ๐ฑ๐ฎ๐๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ญ๐")
- go ReloginProgram(cl,to)
- } else if res == "chrome" {
- exec.Command("bash","-c","cd /root/rary/allos && cp auth_chrome.go /root/rary/Library/oop/auth.go").Output()
- cl.SendMessage(to, "โฐ ๐ฆ๐๐๐๐ฒ๐บ "+res+" ๐จ๐ฝ๐ฑ๐ฎ๐๐ถ๐ป๐ด...")
- exec.Command("bash","-c","cd /root/rary && go build nrm.go").Output()
- cl.SendMessage(to, "โฐ ๐จ๐ฝ๐ฑ๐ฎ๐๐ ๐๐จ๐ฆ๐ฉ๐ฅ๐๐ญ๐")
- go ReloginProgram(cl,to)
- } else {
- cl.SendMessage(to, "Have:\n>android\n>ios\n>chrome\n\n>try again!!")
- break
- }
- } else {
- cl.SendMessage(to, "Have:\n>android\n>ios\n>chrome\n\n>try again!!")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement