Skip to content

Instantly share code, notes, and snippets.

View 4anonz's full-sized avatar
💭
I may be slow to respond.

4anonz

💭
I may be slow to respond.
View GitHub Profile
@4anonz
4anonz / encrypt.c
Created August 4, 2021 00:39
Simple C Program for Encrypting/Decrypting Basic Files
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define MAXIN 250
void encrypt(char *, int);
void decrypt(char *, int);
void prompt(const char*, char*);
@4anonz
4anonz / GuessingGame.java
Created August 4, 2021 00:30
Java Number Guessing Game With Random Number Generator
// Beginner Simple Number Guessing Game using random number generator
import java.util.Random;
import java.util.Scanner;
public class GuessingGame {
public static void main(String[] args) {
Random random = new Random();
Scanner inputs = new Scanner(System.in);
@4anonz
4anonz / myifconfig.c
Created August 3, 2021 17:17
Implementing a C program for listing interfaces on device. This is much like the ifconfig command on Linux
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netdb.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
@4anonz
4anonz / pyserver.py
Created August 3, 2021 17:10
Simple server program in python
#/usr/bin/python3
# Simple implemenation of server in python
import socket
from os import system
def main():
print("++++++[*]Starting server")
#Leave it empty to use any available interface on the machine