Skip to content

Instantly share code, notes, and snippets.

View chaosifier's full-sized avatar
:electron:
Upgrading…

Sagar Dahal chaosifier

:electron:
Upgrading…
View GitHub Profile
@chaosifier
chaosifier / gist:7a3574701e978522c125fd8e39912af1
Created June 30, 2023 15:23
Dahua CVE-2021-3304 C# .NET
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Sandbox
{
public static class DahuaCrack
@chaosifier
chaosifier / gist:441ecb9428fa36c0eae8b3154f830ff9
Created April 29, 2022 07:27
Importing and finding coordinates in a map from geospatial data.
- download qgis from https://qgis.org/en/site/
- C:\Program Files\QGIS 3.22.6\bin> ogr2ogr -progress -f "MSSQLSpatial" "MSSQL:server=DESKTOP-HE9GCV7;database=Sandbox;uid=sa;pwd=admin" "C:\Users\theUser\Downloads\NepalLocalUnits0_2022_April_29_10_05_55\NepalLocalUnits0\NepalLocalUnits0.shp" -a_srs "EPSG:4326" -lco PRECISION=NO
- in sql server
SELECT *
FROM nepallocalunits0
WHERE ogr_geometry.STContains(
geometry::STGeomFromText('POINT(87.9909718 26.6401384)', 4326)
) = 1;
@chaosifier
chaosifier / gist:dcbcfc6a97b661865d33a07620dfdee6
Created June 6, 2021 04:35
Tampermonkey script for auto captcha filling in NEPSE TMS
// ==UserScript==
// @name TMS captcah autofill
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author chaosifier
// @match https://*.nepsetms.com.np/login
// @grant none
// ==/UserScript==
@chaosifier
chaosifier / propref.snippet
Last active July 9, 2021 11:07
Visual Studio C# Code snippet for observable property and backing field
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>propref</Title>
<Shortcut>propref</Shortcut>
<Description>Code snippet for observable property and backing field</Description>
<Author>Sagar Dahal</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>