Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:ipAddresses=document.getSelection().match(/bd{1,3}.d{1,3}.d{1,3}.d{1,3}b/g).join("<br>");newWindow=window.open('', 'IP Addresses in Selection', 'innerWidth=200,innerHeight=300,scrollbars');newWindow.document.write(ipAddresses)
- javascript:alert(
- document.getSelection().match(/bd{1,3}.d{1,3}.d{1,3}.d{1,3}b/g)
- .join("n"))
- /bd{1,3}.d{1,3}.d{1,3}.d{1,3}b/
- /^([1-9][0-9]{0,2})+.([1-9][0-9]{0,2})+.([1-9][0-9]{0,2})+.([1-9][0-9]{0,2})+$/
- javascript:document.write(document.getSelection().match(/bd{1,3}.d{1,3}.d{1,3}.d{1,3}b/g))
- CmdUtils.CreateCommand({
- name: "findip",
- preview: function( pblock ) {
- var msg = 'IP Addresses Found<br/><br/> ';
- ips = CmdUtils.getHtmlSelection().match(/bd{1,3}.d{1,3}.d{1,3}.d{1,3}b/g);
- if(ips){
- msg += ips.join("<br/>n");
- }else{
- msg += 'None';
- }
- pblock.innerHTML = msg;
- },
- execute: function() {
- ips = CmdUtils.getHtmlSelection().match(/bd{1,3}.d{1,3}.d{1,3}.d{1,3}b/g);
- if(ips){
- CmdUtils.setSelection(ips.join("<br/>n"));
- }
- }
- })
Add Comment
Please, Sign In to add comment