here is the example how to implement the auto password in shell script.
Echo yourpasswordhere | sudo -S insmod xxx.ko