Skip to content

Instantly share code, notes, and snippets.

View anmolj7's full-sized avatar

Anmol Jhamb anmolj7

View GitHub Profile
from shodan import Shodan
import subprocess as sp
import requests
api = Shodan("iG0r3X7hjuIVWlopWTyy8DPO7eIF3wEG")
def clrscr():
sp.call(["clear"], shell=True)
def breakline():
@anmolj7
anmolj7 / tensor.yml
Created December 8, 2019 13:16
Ansible playbook to install tensorflow on fedora systems.
---
- hosts: localhost
become: yes
name: play_1
tasks:
- name: Installing Python3.6
dnf: name=python3.6 state=latest
- name: Downloading get-pip.py
shell: wget https://bootstrap.pypa.io/get-pip.py
import subprocess as sp
from hashlib import md5, sha1, sha384, sha224, sha512, sha256
import os
HASHES = ['sha256', 'sha384', 'sha224', 'sha512', 'sha1', 'md5']
def breakline():
print('-'*80)
def clrscr():
<html>
<head>
<title>Task for GCI</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
input{
border: none;
background-color: lightblue;
}
body{
from flask import Flask, request
import telegram
import os
os.chdir('mysite')
bot_token = "API KEY"
bot_user_name = "Gotoh_Welcome_Bot"
URL = "your hosted url"
TOKEN = bot_token
bot = telegram.Bot(token=TOKEN)
---
- hosts: localhost
name: play_1
tasks:
- name: Creating the Account
user:
name: test_3
password: '2cc88511a4cd61e01f8d1636a2c82470fef06c9f473cff464b61798588b284b6'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anmolj7
anmolj7 / PresenceChecker.py
Created January 8, 2020 17:35
You need to pip install lxml, bs4 and requests. This is not compatible wiht python2, that is outdated anywasys XD
import requests
import re
from bs4 import BeautifulSoup
class colors:
GREEN = '\033[92m'
STOP = '\033[0m'
RED='\033[31m'
class CheckUsername:
from functools import reduce
def return_factors(n):
p = 2
Factors = {}
while p * p <= n:
count = 0
while n % p == 0:
n //= p
count += 1
import math
def number_of_factors(num):
count = 0
for i in range(1, int(math.sqrt(num))+1):
if num%i == 0:
if num/i == i:
count += 1
else:
count += 2