Thanks for the ideas,
it doesnt work though...
cmdreplace = {"ifconfig":"/sbin/ifconfig", "arp":"/usr/sbin/arp", "route":"/sbin/route"}
for key, value in cmdreplace.iteritems():
cmd = command.replace(key, value)
print cmd
Only replaces the first command, ifconfig, same problem that I was having earlier..
UPDATE:
Have Included user agent password and script makes it own webshell with -g