Skip to content

Instantly share code, notes, and snippets.

✌️
Do the right thing

mour mylamour

✌️
Do the right thing
Block or report user

Report or block mylamour

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 浅谈反入侵.md
layout title categories kerywords tags
post
浅谈反入侵
HowTo
安全思考 反思 安全 安全架构 安全创新 总结 反入侵 安全运营 混沌安全 企业安全建设
知识回顾

前言

View sendmailWithTLS.py
# +TLS
SESSION = smtplib.SMTP_SSL()
SESSION.connect(SMTPADDR, 465)
SESSION.login(SENDER, password)
MAILMSG = MIMEMultipart()
MAILMSG['Subject'] = SUBJECT
MAILMSG['From'] = SENDER
MAILMSG['To'] = toaddrs
@mylamour
mylamour / osquery_windows.md
Created May 22, 2019
#Windows Osquery Compile#
View osquery_windows.md
@mylamour
mylamour / tcp_flags.txt
Created Apr 23, 2019 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
View tcp_flags.txt
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@mylamour
mylamour / System Design.md
Last active Jun 23, 2019 — forked from vasanthk/System Design.md
System Design Cheatsheet
View System Design.md

系统设计备忘录

挑选正确的架构约等于选择正确的战斗并做好权衡

基本步骤

  1. 明确系统边界
  • 用户案列 (描述哪些业务,事件,组合在一起会产生什么样的效果)
    • 谁使用这个系统?
    • 他们怎么使用这个系统?
View hmm.py
import numpy as np
from hmmlearn import hmm
from sklearn.datasets import load_iris,load_diabetes
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
CLASSES = 4
ITERATIONS = 100000
iris = load_iris()
View guessLan.py
import os
import fire
from colorama import Fore
from collections import Counter
# SUPPORT_SUFFIX = ['lua','c','cpp','py','java','scala','php','js']
# 如果给个最低均值就好了,或者比率
PROJECTLAN = {
@mylamour
mylamour / download.py
Created Oct 29, 2018
[threatfeeds download] #python #threat feeds.io
View download.py
import re, os, sys
import json
import logging
import hashlib
import requests
from functools import partial
from bs4 import BeautifulSoup
from concurrent.futures import ProcessPoolExecutor
from multiprocessing import Pool, TimeoutError
from urllib.parse import urlparse
@mylamour
mylamour / raspberry-HIFI.md
Last active Sep 30, 2018
#Raspberry# #HIFI Berry#
View raspberry-HIFI.md

我的是板子是Raspberry Zero W

sudo vim /boot/config.txt

dtoverlay=hifiberry-dac

然后aplay -l检测 声卡是否加载了,你要加载你自己的型号。我的是hifiberry-dac的。可以看到card-1已经加载了hifiberry

You can’t perform that action at this time.