Skip to content

Instantly share code, notes, and snippets.

@hakxcore
hakxcore / AdbCommands
Last active August 9, 2022 05:27 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
//hakxcore
/* For character stuffing, take two randomly chosen characters
from character set one for FLAG and other for ESCAPE. Assume that chosen
characters are F and E respectively.*/
/* Delimit the input using character F. For every
occurrence of F in data part, stuff E before F. Similarly, for every occurrence
of E in data part stuff E before data E*/
import java.io.*;
import java.util.*;
import java.lang.*;
//Implementation of skip list
//code modified by @hakxcore <3
#include <bits/stdc++.h>
using namespace std;
class Node
{
public:
int key;
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#wireshark version 3.4.9
ip.addr == 10.43.54.0/24
ip.dst == 10.43.54.0/24
ip.src == 10.43.54.0/24
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
eth.dst == 00:0C:CC:76:4E:07 #source mac filter
eth.src == 00:0C:CC:76:4E:07 #destination mac filter
ether host 00:18:0a:aa:bb:cc #a specific mac. This will not work on interfaces where traffic has been NATed like NAT mode SSID or an Internet interface
## OBJECT ORIENTED PROGRAMMING
--|- Object Oriented Programming
|
1 |---- class
|
2 |---- object
|
3 |---- Abstraction
|
## Input.cpp //for input to the numberAdder
/* Program to add two numbers using cpp
Take three variables a, b, c
Input a, b from user
add a and b to c
print c
*/
#include <bits/stdc++.h>
## Input file (input.cpp)
/* Program to add two numbers using cpp
Take three variables a, b, c
Input a, b from user
add a and b to c
print c
*/
#include <bits/stdc++.h>
## Input file (input.cpp)
/* Program to add two numbers using cpp
Take three variables a, b, c
Input a, b from user
add a and b to c
print c
*/
#include <bits/stdc++.h>
## Input File (input.txt)
int main() {
int a=20,65b=10;
cout << "Hello" << endl;
return 0;
}
## Checks for aa+b*
## Code for String_rec.java
import java.util.*;
//aa+b*
public class String_rec {
String str;
int state=0;