This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import re | |
| for i in range(500,2000): | |
| r = requests.get('http://www.anydrupalsite.com/node/' + str(i)) | |
| if r.status_code == 200: | |
| emails = re.search('mailto:.*@[\w.]+"', r.content) # THIS BE THE TRACKING CRITERIA. | |
| if emails: | |
| print emails.group() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| keyboard = { | |
| getKeyCode : function(e) { | |
| var keycode = null; | |
| if(window.event) { | |
| keycode = window.event.keyCode; | |
| }else if(e) { | |
| keycode = e.which; | |
| } | |
| return keycode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Tejas Tank. | |
| /// tejas.tank.mca@gmail.com | |
| (function($) { | |
| $.fn.getAttributes = function() { | |
| var attributes = {}; | |
| if(!this.length) | |
| return this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| str = '%(company_name)s%(street)s\n%(street2)s\n%(city)s,%(state_code)s %(zip)s\n%(country_name)s' | |
| el = { x:len(re.findall('\%\([^\%\(]+?\)s',x)) for x in str.split("\n")} | |
| args_xml = { | |
| 'street': '<field name="street" placeholder="Street" style="width:{0}%;"/>', | |
| 'street2': '<field name="street2" placeholder="Street2" style="width:{0}%;"/>', | |
| 'city': '<field name="city" placeholder="City" style="width:{0}%;"/>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # | |
| # | |
| # | |
| # BELOW FUNCTION FEATURE ADD IN `res.country` CLASS, WHICH REFORMAT ADDRESS AS PER COUNTRY ADDRESS FORMAT. | |
| def fields_view_address_formate(self, cr, uid, context=None): | |
| country_id = self.pool.get('res.users').browse(cr, uid, uid,context).company_id.country_id | |
| args = {} | |
| if country_id and country_id.address_format: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HTML2TEXTStripper(HTMLParser): | |
| def __init__(self): | |
| self.reset() | |
| self.fed = [] | |
| def handle_data(self, d): | |
| self.fed.append(d) | |
| def handle_entityref(self, name): | |
| c = '' | |
| if name in ['gt','lt','nbsp','amp','quot','apos']: | |
| c = self.unescape("&%s;" % name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| l = itertools.permutations(['v','i','r','t','u','a','l']) | |
| tt = [ "".join(x) for x in list(l)] | |
| print tt | |
| here tt hoild all possible password | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author : tejastank | |
| import smtplib | |
| smtp_email_user = 'erthnet@gmail.com' | |
| smtp_email_pwd = 'd3' | |
| emails= ['test@gmail.com','rtr@gmail.com','ddd@gmail.com'] | |
| passwords = ['dd','434','3344','~~~','xxxxxxxx'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #GPL, Tejas Tank. tejas.tank.mca@gmail.com | |
| import urllib | |
| import hashlib | |
| import json | |
| import sys | |
| import datetime | |
| def _passencode(password): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import time | |
| import simplejson as json | |
| import jsontemplate | |
| import itertools | |
| def password(req): | |
| l = itertools.permutations(['v','i','r','t','u','a','l']) | |
| tt = [ "".join(x) for x in list(l)] |