Guest User

Untitled

a guest
Jan 16th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. insmod /system/lib/modules/xt_HL.ko
  4. lsmod > /system/etc/curlsmod
  5. /system/bin/iptables -t mangle -L > /system/etc/preiptables
  6. /system/bin/iptables -t mangle -A POSTROUTING -o rmnet+ -j TTL --ttl-set 64
  7. /system/bin/iptables -t mangle -L > /system/etc/postiptables
  8.  
  9. on property:dev.bootcomplete=1
  10. start fota-snoop # системный сервис
  11. start fota-trigger # системный сервис
  12. start startup-prober # системный сервис
  13. start fairnet # мой сервис
  14.  
  15. service fairnet /system/bin/sh /system/etc/init.fairnet.sh
  16. user root
  17. group root
  18. disabled
  19. oneshot
  20.  
  21. -rw-r--r-- root root 280 2018-01-09 01:03 init.fairnet.sh
  22.  
  23. dmesg | grep iptables
  24.  
  25. <36>[ 39.819005] type=1400 audit(1516096993.541:9): avc: denied { create } for pid=2652 comm="iptables" lport=255 scontext=u:r:init_shell:s0 tcontext=u:r:init_shell:s0 tclass=rawip_socket op_res=-13 ppid=2640 pcomm="sh" tgid=2640 tgcomm="sh"
  26.  
  27. ./sepolicy-inject -s init_shell -t init_shell -c rawip_socket -p getopt,create,setopt -P sepolicy -o sepolicy_new
Add Comment
Please, Sign In to add comment