var targetNode = document.body
const config = { childList: true ,characterData: true, subtree: true, attributes: true,};// callback function
const callback = function (mutationsList, observer) {
let node1 = document.getElementsByClassName("Tappable-module_root__N7ll5 absolute crt-popup_close_button__ZhQDT");
node1[0].click()
let node2=document.getElementsByClassName("exit-intent_close_icon__lxzbB")
node2[0].click()
console.log('Changes Detected');
- check the security of our system
- whether there was any unauthoried accesss happended recenly
- last login of user i.e log of recent user logins
- log of commands ran as sudo
- any open ports :nmap
- recently installed sofwares (by dpkg -i or sudo apt install)
- recently connected wifi details
- last run 10 commands
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
/* scenario of usage | |
- reading a pdf of say 100 pages | |
- index page has numbers to each chapters | |
- those are not the exact numbers to by typed in toolbar | |
- say the book chapter 1 starts on page 19 | |
- so index pages shows chapter1---- page1 | |
- so we need to manually go thorugh them and check each page whether we reached the inteneded page or not | |
*/ | |
/*description of inputs | |
- as first input we give the page number of first page |
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
''' | |
1: user gives a package.json file | |
2:script fetches the latest version | |
3:tells the need of updates | |
4:uses python urllib,csv | |
5:we can have a bash script as well to run it | |
6:it outputs a file with results.csv | |
''' | |
#check_version.py | |
import json |
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 time | |
import os | |
import csv | |
a=""" ___ __ _ | |
/ _ \ /_ | | | |
_ __ ___ | | | |_ ___ __ | | | ____ _ | |
| '_ ` _ \| | | \ \ /\ / / '_ \| | |/ / _` | | |
| | | | | | |_| |\ V V /| | | | | < (_| | | |
|_| |_| |_|\___/ \_/\_/ |_| |_|_|_|\_\__,_|""" | |
print(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
FROM golang:1.20.6-alpine AS builder | |
RUN apk add --no-cache git gcc musl-dev | |
WORKDIR /katana | |
COPY katana/go.mod katana/go.sum . | |
RUN go mod download | |
COPY /katana . | |
#building of katana | |
RUN go build -o /bin/katana ./cmd/katana | |
#start making subfinder |
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
""" | |
MOBSF REST API Python Requests | |
""" | |
import json | |
import requests | |
from requests_toolbelt.multipart.encoder import MultipartEncoder | |
SERVER = "http://127.0.0.1:8000" |
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
""" | |
MOBSF REST API Python Requests | |
""" | |
import json | |
import requests | |
from requests_toolbelt.multipart.encoder import MultipartEncoder | |
SERVER = "http://127.0.0.1:8000" | |
FILE = 'diva-beta.apk' |