Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

js regex, xml and https everywhere


  • Please log in to reply
2 replies to this topic

#1 Vampire1408

Vampire1408

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:09:19 PM

Posted 25 August 2013 - 05:29 AM

I'm trying to create a custom ruleset for a browser game called Chronicles of Blood (COB) found on fb for the https everywhere addon in Firefox because the login doesn't use https by default. Currently I know how to use regex, applied it to xml and created one but it's not activating. I'd like some help on this and corrections on the xml if possible.

 

notes: It's been a while since I've used regex so I wrote many duplications.

login: http://chronicles-of-blood.com/cob/?extern=1

secure login: https://chronicles-of-blood.com/cob/?extern=1

exclusion list: http://chronicles-of-blood.com/cob/home/*

https create rulesets page: https://www.eff.org/https-everywhere/rulesets

 

saved as cob.xml :

<ruleset name="Chronicles of Blood Login">
	
	<target host="www.chronicles-of-blood\.com" />
	<target host="chronicles-of-blood\.com" />
	<target host="chronicles-of-blood\.com/" />
	<target host="chronicles-of-blood\.com/*" />
	<target host="*\.chronicles-of-blood\.com/" />
	
	<securecookie host="^(?:.*\.)?chronicles-of-blood.com$" name=".*" />
	
	<rule from="^http://(?:www\.)?chronicles-of-blood\.com/cob/\?extern=1
			to="https://chronicles-of-blood.com/cob/?extern=1" />
			
	<rule from="^http://(www\.)?chronicles-of-blood\.com/cob/\?extern=1
			to="https://chronicles-of-blood.com/cob/?extern=1" />
			
	<rule from="^http://chronicles-of-blood\.com/cob/\?extern=1
			to="https://chronicles-of-blood.com/cob/?extern=1" />
			
	<rule from="^http://(?:www\.)?chronicles-of-blood\.com/cob/?extern=1
			to="https://chronicles-of-blood.com/cob/?extern=1" />
			
	<rule from="^http://(www\.)?chronicles-of-blood\.com/cob/?extern=1
			to="https://chronicles-of-blood.com/cob/?extern=1" />
			
	<rule from="^http://chronicles-of-blood\.com/cob/?extern=1
			to="https://chronicles-of-blood.com/cob/?extern=1" />
			
	<rule from="^http://chronicles-of-blood\.com/
			to="https://chronicles-of-blood.com/" />
			
			
	<exclusion pattern="^http://chronicles-of-blood.com/cob/home/home\?extern=1" />
	<exclusion pattern="^http://chronicles-of-blood.com/cob/home/*" />
</ruleset>

Edited by Vampire1408, 25 August 2013 - 05:31 AM.


BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:02:19 PM

Posted 25 August 2013 - 12:44 PM

Have you any specific questions?



#3 Vampire1408

Vampire1408
  • Topic Starter

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:09:19 PM

Posted 25 August 2013 - 02:27 PM

how to convert http://chronicles-of-blood.com/cob/?extern=1 into https://chronicles-of-blood.com/cob/?extern=1 using js regex fr a https everywhere ruleset i guess, since it isn't working






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users