Skip to content

Instantly share code, notes, and snippets.

View Blackhawk95's full-sized avatar
😕
Rebuilding stuffs

Abhijith M Blackhawk95

😕
Rebuilding stuffs
View GitHub Profile
@Blackhawk95
Blackhawk95 / idk.cc
Last active April 2, 2018 07:33 — forked from patiljeevanr/idk.cc
ethernet tcp
#include <iostream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/ipv4-global-routing-helper.h"
@Blackhawk95
Blackhawk95 / load_store.v
Created April 5, 2018 03:01
load and store for 8 bit ALU for ADD lab
module load_store(address,data,load_or_store);
input [7:0] address;
inout [7:0] data;
input load_or_store;
reg [7:0] regmem [255:0];
wire [7:0] address;
//assign load_or_store=1'b0;
always @(*)
begin
@Blackhawk95
Blackhawk95 / secondsomething.txt
Last active April 10, 2018 07:00
ns3 ouput second
CODE
---code---u already took----
output for 1
[jeevan@jeevan-pc ns-3.27]$ ./waf --run "scratch/dsdvwifi_0_1 -nwifisource=4 --saturated=false"
Waf: Entering directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
Waf: Leaving directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
@Blackhawk95
Blackhawk95 / thirdsomething.txt
Last active April 10, 2018 07:01
ns3 third output
CODE
---------i think u already took this ------------
#include <iostream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
@Blackhawk95
Blackhawk95 / iptables.txt
Last active April 10, 2018 17:24
iptables commands rocks
3.
abhijithm@archlabs ~ % ping 192.168.43.35
PING 192.168.43.35 (192.168.43.35) 56(84) bytes of data.
^C
--- 192.168.43.35 ping statistics ---
32 packets transmitted, 0 received, 100% packet loss, time 37674ms
4.
HAHA i blockedd facebook
abhijithm@archlabs ~ % sudo iptables -A OUTPUT -p tcp -m string --string "facebook.com" --algo kmp -j REJECT
@Blackhawk95
Blackhawk95 / firstsomething.txt
Created April 10, 2018 17:58
ns3firstoutput
abhijithm@archlabs ~/Workspace/ns-allinone-3.27/ns-3.27 (git)-[master] % ./waf --run "scratch/wifilab1 --nwifisource=5"
Waf: Leaving directory `/home/abhijithm/Workspace/ns-allinone-3.27/ns-3.27/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (28.465s)
Hidden station experiment with RTS/CTS disabled:
Max Packets per trace file exceeded
Flow 1 (10.0.0.1 -> 10.0.0.6)
PDR 0.02576802
Collision Rate 372735bps
End to End delay 1.63582
@Blackhawk95
Blackhawk95 / networktools.txt
Last active June 5, 2021 06:43
How to install every network tool #not_perfect
To run almost all tools, run using their name (mostly using sudo [not recommended] )
eg: to run iptraf :- sudo iptraf
[for more info on ALL tools: manpages will help, [ for eg: " man iptraf " to get more info on iptraf WITHOUT internet]
1. Iptraf
sudo apt-get install iptraf
Learn More:

Heimdall : Mitigating the Internet of Insecure Things

  • IoT - {define}
    • Architecture [from background]
    • uses cloud API’s - gateway is required
  • Applications of IoT - {examples}
  • Growth of IoT
    • 2025 - 6 trillion $ ( Mckinsey & Company : Economic growth)
    • 2020 - 20.8 billion devices ( Gartner : Sales)
  • Threats
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{subcaption}
@Blackhawk95
Blackhawk95 / lru.cc
Created August 6, 2018 13:03
Equal Writes
/*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the functionality of the software
* licensed hereunder. You may use the software subject to the license
* terms below provided that you ensure that this notice is replicated