This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os | |
from zlib import crc32 | |
from shutil import copyfileobj | |
from struct import calcsize | |
from io import SEEK_END | |
### uImage Header | |
### 64-byte header structure: | |
### uint32 magic_number | |
### uint32 header_crc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/module.h> | |
#include <linux/version.h> | |
#include <linux/kernel.h> | |
#include <linux/types.h> | |
#include <linux/pci.h> | |
#include <linux/init.h> | |
#include <linux/skbuff.h> | |
#include <linux/if_vlan.h> | |
#include <linux/if_ether.h> | |
#include <linux/fs.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import windll, create_unicode_buffer, c_void_p, c_uint, c_wchar_p | |
kernel32 = windll.kernel32 | |
GlobalLock = kernel32.GlobalLock | |
GlobalLock.argtypes = [c_void_p] | |
GlobalLock.restype = c_void_p | |
GlobalUnlock = kernel32.GlobalUnlock | |
GlobalUnlock.argtypes = [c_void_p] | |
user32 = windll.user32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import json | |
import requests | |
HEADERS = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36'} | |
POST_HEADERS = {'origin': 'https://msdn.itellyou.cn', 'referer': 'https://msdn.itellyou.cn/'} | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
Add-Type -TypeDefinition @" | |
using System; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
namespace System { | |
public class IconExtractor { | |
public static Icon Extract(string file, int number, bool largeIcon) { | |
IntPtr large; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tchar.h> | |
#include <windows.h> | |
// The known values for NOTIFYITEM's dwPreference member. | |
enum NOTIFYITEM_PREFERENCE | |
{ | |
// In Windows UI: "Only show notifications." | |
PREFERENCE_SHOW_WHEN_ACTIVE = 0, | |
// In Windows UI: "Hide icon and notifications." | |
PREFERENCE_SHOW_NEVER = 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HMODULE hUser = GetModuleHandleA("user32.dll"); | |
if (hUser) | |
{ | |
pfnSetWindowCompositionAttribute setWindowCompositionAttribute = (pfnSetWindowCompositionAttribute)GetProcAddress(hUser, "SetWindowCompositionAttribute"); | |
if (setWindowCompositionAttribute) | |
{ | |
ACCENT_POLICY accent = { ACCENT_ENABLE_BLURBEHIND, 0, 0, 0 }; | |
WINDOWCOMPOSITIONATTRIBDATA data; | |
data.Attrib = WCA_ACCENT_POLICY; | |
data.pvData = &accent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _vcmp | |
from _vcmp import functions | |
import irc.bot | |
class TestBot(irc.bot.SingleServerIRCBot): | |
def __init__(self, channel, nickname, server, port=6667): | |
irc.bot.SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname) | |
self.channel = channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cookie="your cookie" | |
servers="cccat.club cccat.pw cccat.pro" | |
set -- $servers | |
while [ -n "$1" ]; do | |
logger -t CCCATSIGN Checking in $1. | |
response=$(wget -q -O - --header "Cookie: $cookie" https://$1/user/_checkin.php 2>&1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from os import path | |
import re | |
import polib | |
def msg2po(msgfile, pofile): | |
with open(msgfile, 'rb') as f: | |
messages = f.read() | |
po = polib.POFile() |