Skip to content

Instantly share code, notes, and snippets.

View jeansouzak's full-sized avatar
🦈

Jean Carlo de Souza jeansouzak

🦈
View GitHub Profile
@jeansouzak
jeansouzak / virus_total_url_scanner.py
Created June 26, 2023 06:14
VirusTotal URL Scanner: Analyzing URLs from a List and Generating a Suspicious URL Output File
import requests
import argparse
class URLAnalyzerInterface:
def is_suspicious(self, url):
pass
class VirusTotalAnalyzer(URLAnalyzerInterface):
def __init__(self, api_key):
@jeansouzak
jeansouzak / download_latest_ftp_file.md
Last active March 9, 2024 19:33
Download latest FTP file (sync) using Python example with nlst mlsd or mdtm support
import ftplib
import glob
import os

DOWNLOADED_FILES_LOCAL_FOLDER = "downloaded_files/"

def connect(): 
    ftp_client = ftplib.FTP()
    ftp_client.connect('test.rebex.net', 21)