TEXT   64

Omegle Ip Puller

Guest on 1st May 2022 07:55:37 AM

  1. window.oRTCPeerConnection  = window.oRTCPeerConnection || window.RTCPeerConnection
  2.  
  3. window.RTCPeerConnection = function(...args) {
  4.  const pc = new window.oRTCPeerConnection(...args)
  5.  
  6. pc.oaddIceCandidate = pc.addIceCandidate
  7.  
  8. pc.addIceCandidate = function(iceCandidate, ...rest) {
  9.  const fields = iceCandidate.candidate.split(' ')
  10.  
  11. if (fields[7] === 'srflx') {
  12. console.log('IP Address:', fields[4])
  13. }
  14. return pc.oaddIceCandidate(iceCandidate, ...rest)
  15.  
  16. }
  17.  
  18. return pc
  19. }

Raw Paste


Login or Register to edit or fork this paste. It's free.