This file contains 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
def py2ipy(fpy): | |
import nbformat | |
import re | |
from nbformat.v4 import new_notebook, new_code_cell | |
with open(fpy) as f: | |
src = f.read() | |
src = src.replace('# coding: utf-8', '') | |
cells = [new_code_cell(cell) for cell in re.split('\n\n\n# In\[[0-9]+\]:\n\n\n', src)] |
This file contains 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
malCfile="maliciousOnly.txt" | |
baseDir="back_up_dir/websites" | |
replCfile="disInfectedComment.txt" | |
workext="js,php" | |
import sys,os,time,json | |
if sys.version_info[0] < 3: | |
input=raw_input | |
print("Current Directory:") | |
print(os.path.abspath(os.getcwd())) |
This file contains 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
##shebang python 2.7 | |
#pvpro daily free coins claimer | |
from crontab import CronTab | |
from datetime import datetime | |
import time | |
#pvpro credentials of all users | |
credentails=[ | |
#(username,password), |
This file contains 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
#pvpro credentials | |
username='carbonhorse'#put-pvpro-uname-here | |
password='<put-pvpro-password-here>' | |
import datetime | |
if datetime.datetime.now()!=10:exit() | |
import requests | |
getheaders= { | |
'Accept-Encoding': 'gzip, deflate, br', |
This file contains 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
# Copyright 2015 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains 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
from flask import Flask,request,Response | |
import requests,json | |
app = Flask(__name__) | |
app.config['DEBUG'] = True | |
@app.errorhandler(404) | |
def page_not_found(e): | |
"""Return a custom 404 error.""" |
This file contains 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
def getval(s,f,t): | |
st=s.find(f)+len(f) | |
return s[st:s.find(t,st)] | |
def dsp(zrc): | |
pass#with open("C:\Users/smartm13/Desktop/op.txt.html",'w') as f:f.write(zrc) | |
proxies=[] | |
def hidemyass(config='1649468'):# and ('1870962' or '1870954')): | |
import requests | |
rg=requests.get |
This file contains 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
from __future__ import print_function | |
import httplib2 | |
import os | |
from apiclient import discovery | |
from oauth2client import client | |
from oauth2client import tools | |
from oauth2client.file import Storage | |
SCOPES = 'https://www.googleapis.com/auth/spreadsheets' |
NewerOlder