3
0
forked from ff/Botnet

IsRoot changed to global variable

IsRoot changed to global variable. todo: change from int to bool.
This commit is contained in:
Morrigan 2019-03-24 19:41:01 -07:00
parent fa81bedd90
commit 01df84aeba

View File

@ -8,7 +8,7 @@ import (
)
var (
isroot int = 0
IsRoot int = 0
)
func chkroot(){
@ -19,7 +19,7 @@ func chkroot(){
id1, err := strconv.Atoi(user.Uid) //converts uid to a int
if id1 == 0 { //cheks if uid = 0
isroot = 1
IsRoot = 1
}
@ -29,5 +29,5 @@ func chkroot(){
func main() {
chkroot()
fmt.Println(isroot)
fmt.Println(IsRoot)
}