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
Seat_ID | Seat_Name | Candidate_Name | Candidate_Undi_Name | Party | |
---|---|---|---|---|---|
P.001 | PADANG BESAR | IZIZAM BIN IBRAHIM | IZIZAM BIN IBRAHIM | PKR | |
P.001 | PADANG BESAR | MOKHTAR BIN SENIK | USTAZ MOKHTAR SENIK | PAS | |
P.001 | PADANG BESAR | ZAHIDI BIN ZAINUL ABIDIN | DATUK ZAHIDI BIN ZAINUL ABIDIN | BN | |
P.002 | KANGAR | MOHAMAD ZAHID BIN IBRAHIM | USTAZ ZAHID IBRAHIM | PAS | |
P.002 | KANGAR | NOOR AMIN BIN AHMAD | AMIN AHMAD | PKR | |
P.002 | KANGAR | RAMLI BIN SHARIFF | RAMLI SHARIFF | BN | |
P.003 | ARAU | ABD RAHMAN BIN DAUD | DATO' DR. HAJI ABD RAHMAN BIN DAUD | PKR | |
P.003 | ARAU | HASHIM BIN HJ JASIN | USTAZ HASHIM JASIN | PAS | |
P.003 | ARAU | SHAHIDAN BIN KASSIM | SHAHIDAN BIN KASSIM | BN |
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 tweepy | |
from custom_config import get_attr_from_list | |
from custom_config import consumer_key, consumer_secret, access_key, access_secret | |
def write_tweets_to_file(screen_name): | |
ids = [] | |
x = 1 | |
with open(screen_name.strip() + '.csv', 'w') as file: |
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 tweepy | |
from tweepy import TweepError | |
from datetime import datetime, timedelta | |
import logging | |
import json | |
from custom_config import consumer_key, consumer_secret, access_key, access_secret | |
tweets_delete = [] | |
max_age = 90 # in days |
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 json | |
import boto3 | |
import os | |
bucket_name = 'files.siteaudit.sayakenahack.com' | |
file_prefix = 'scan' | |
keys = [] | |
client = boto3.client('s3') | |
s3 = boto3.resource('s3') |
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 json | |
import logging | |
import boto3 | |
import customConfig | |
import os | |
import argparse | |
import datetime | |
""" Loading JSONL file into DynamoDB, customConfig.table_name has the DynamoDB Table 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 argparse | |
import os | |
import logging | |
import shutil | |
from pathlib import Path | |
""" Assumes files end with _xx.jsonl | |
where xx is an integer (that is at least 1 digit | |
""" |
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 logging | |
# Logging setup | |
logging.basicConfig(filename='log.txt', | |
filemode='a', | |
level=logging.INFO, | |
format='%(asctime)s %(message)s', | |
datefmt='%m/%d/%Y %I:%M:%S %p') | |
if __name__ == "__main__": |
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 string | |
from random import choice | |
alphabet = string.ascii_letters + string.digits | |
captcha = "".join(choice(alphabet) for x in range(1, 4)) | |
print(captcha) |
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
<a href="www.google.com"> link here </a> |
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
netdiscover -r 192.168.0.0/24 | |
>> Machine Name, IP, MAC (csv file) | |
Enter name of machine: | |
Enter ip of the machine: | |
nMap Fast scan with version | |
nMap Full scan with version |