Skip to content

Instantly share code, notes, and snippets.

View lakamsani's full-sized avatar

Vamsee Lakamsani lakamsani

View GitHub Profile

Shazzam: Port Scanning and OS Detection System

Shazzam is a sophisticated port scanning and host discovery system implemented in Java as part of the ServiceNow MID (Management, Instrumentation, and Discovery) server. It is designed to probe IP addresses for open ports and gather information about the target hosts, including attempting to determine their operating systems.

Core Architecture

Shazzam is built around several key components that work together to provide a scalable and extensible port scanning solution:

1. Base Classes and Inheritance Hierarchy

@lakamsani
lakamsani / envoy-tls-inspector-tls-plaintext.yaml
Last active February 19, 2023 08:47
Envoy config that demonstrates how to use the TLS inspector to route traffic to differently for TLS and non TLS connections with client cert validation for TLS
static_resources:
listeners:
- name: mylistener
address:
socket_address:
protocol: TCP
address: 0.0.0.0
port_value: 20443
listener_filters:
- name: tls_inspector
@lakamsani
lakamsani / value-ls.yaml
Created January 15, 2023 23:48
OTel demo with Lightstep yaml updates
opentelemetry-collector:
nameOverride: otelcol
mode: deployment
extraEnvs:
- name: LS_TOKEN
valueFrom:
secretKeyRef:
key: LS_TOKEN
name: otel-collector-secret
resources:
@lakamsani
lakamsani / LinearProbing.java
Created May 27, 2020 18:26
hash collissions
public class HashMap<Key,Value> {
private int numPairs = 100000;
private Value[] vals = (Value[]) new Object[numPairs];
private Key[] keys = (Value[]) new Object[numPairs];
private int hash(Key key) {
return (key.hashCode() & 0x7fffffff) % M;
}
public Value put(Key key, Value val) {

Keybase proof

I hereby claim:

  • I am lakamsani on github.
  • I am lakamsani (https://keybase.io/lakamsani) on keybase.
  • I have a public key ASBqBp7WRip6P7R8gNMHZxH1kfOQQ3EefgwmC4yXK1S-jwo

To claim this, I am signing this object:

{
  "category": {
    "id": "5b28a05430d24c62d7e51be8",
    "name": "Blockchain Service Providers",
    "subCategory": {
      "name": "ICO Marketing",
      "questions": [
        {
 "text": "What Type of Marketing Services Are You Looking For? Select All That Apply.",
@lakamsani
lakamsani / Pulse.md
Last active September 8, 2018 14:14

Hi, my project Pulse has been accepted to the Consensys SF accelerator.
We are looking for an initial short-term gig/help as we add enhancements for our demo day in mid-November. Depending on how things go in mid-November may lead to a longer-term association. The frontend is React/Next.js, the backend is ES2017/ES6 Node.js based ethereum/web3/consensys stack like Truffle, Infura, Metamask, OZ etc. You can try the demo on Ronkeby testnet via https://dapp.pulseagent.co. My twitter DMs are open: https://twitter.com/lakamsani

A few more background links/tweets.

Dear Joyent,

On this excellent content page, https://www.joyent.com/node-js/production/design/errors

the following sentences have grammar errors or sentence formation errors

There are a lot of ways this that continuing on can lead to serious bugs that are extremely difficult to track down

Hi, looks like this code fragment from your blog at: https://rclayton.silvrback.com/custom-errors-in-node-js

// I do something like this to wrap errors from other frameworks.
class InternalError extends DomainError {
  super(error.message);
  this.data = { error };
}

should be modified to have a constructor that takes that error from other frameworks like this?

{
"contractName": "PulseToken",
"abi": [
{
"constant": true,
"inputs": [],
"name": "mintingFinished",
"outputs": [
{
"name": "",