Adm1n_0v3rride

Ip adress interface changer.rb

Jan 15th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.31 KB | None | 0 0
  1. #!/usr/bin/env ruby -w
  2.  
  3. =begin
  4.  
  5. Ip address changer (C) 2018 Adm1n_0v3rride
  6.  
  7. =end
  8.  
  9. puts "Please enter the interface name: "
  10.  
  11. name = gets
  12.  
  13. puts "Please enter the ip address you want: "
  14.  
  15. address = gets
  16.  
  17. system("netsh interface ipv4 set address name=#{name} static 192.168.3.8 255.255.255.0 #{address}
  18. ")
Advertisement
Add Comment
Please, Sign In to add comment