This file contains hidden or 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
| # 同じディレクトリに .env を作ってください。 | |
| # .envのサンプルはgistのコメントに書きます。 | |
| services: | |
| # パスワードマネージャ 不要なら消してね | |
| vaultwarden: | |
| image: vaultwarden_arm64:1.34.3 | |
| container_name: vaultwarden | |
| user: '1000:1000' | |
| ports: | |
| - 8080:80 |
This file contains hidden or 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
| // 参考:https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1546.003/T1546.003.md | |
| Param( | |
| [ValidateSet("Persistence","Clean")]$Mode="Persistence", | |
| [ValidateSet("OnStartup","OnLogon","OnInterval","OnTime")]$Trigger="OnStartup", | |
| [string]$FilterName = 'WMIEventFilter Persistence', | |
| [string]$ConsumerName = "WMIEventConsumer Persistence", | |
| [int]$IntervalPeriod = 3600, | |
| [string]$ExecutionTime = '10:00:00', | |
| [string]$Command | |
| ) |
This file contains hidden or 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
| $otp = "cargo run --";iex $otp" --no-tui -g"|findstr /r /c:"/[0-9]"| %{$_ -replace ".*/","" }|%{for ($i=0;$i -le $_;$i++){ iex $otp" --no-tui -g -n $i" |findstr "otpauth"| %{qrcode -s -d $_};.\qrcode.svg}} |
This file contains hidden or 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 java.util.Iterator; | |
| class IteratorSample { | |
| public static void main(String[ ] args) { | |
| FibonacciNumberGenerator fib = new FibonacciNumberGenerator(); | |
| for(int n: fib){ | |
| System.out.println(n+" "); | |
| } | |
| } | |
| } |
This file contains hidden or 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
| enum RetVal { | |
| Num(u128), | |
| Recursive(Box<dyn Fn() -> RetVal>), | |
| } | |
| fn trampoline(r: RetVal) -> u128 { | |
| let mut r = r; | |
| loop { | |
| match &r { | |
| RetVal::Recursive(func) => { |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
This file contains hidden or 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
| "Physical Address":"0x00000000","Virtual Address":"0x00000000","Pages":160,"Memory Type":"CONVENTIONAL","Attributes":"UNCACHEABLE | WRITE_COMBINE | WRITE_THROUGH | WRITE_BACK" | |
| "Physical Address":"0x00100000","Virtual Address":"0x00000000","Pages":1824,"Memory Type":"CONVENTIONAL","Attributes":"UNCACHEABLE | WRITE_COMBINE | WRITE_THROUGH | WRITE_BACK" | |
| "Physical Address":"0x00820000","Virtual Address":"0x00000000","Pages":2016,"Memory Type":"BOOT_SERVICES_DATA","Attributes":"UNCACHEABLE | WRITE_COMBINE | WRITE_THROUGH | WRITE_BACK" | |
| "Physical Address":"0x01000000","Virtual Address":"0x00000000","Pages":503808,"Memory Type":"CONVENTIONAL","Attributes":"UNCACHEABLE | WRITE_COMBINE | WRITE_THROUGH | WRITE_BACK" | |
| "Physical Address":"0x7c000000","Virtual Address":"0x00000000","Pages":32,"Memory Type":"BOOT_SERVICES_DATA","Attributes":"UNCACHEABLE | WRITE_COMBINE | WRITE_THROUGH | WRITE_BACK" | |
| "Physical Address":"0x7c020000","Virtual Address":"0x00000000","Pages":9923,"Memory Type":"CONVENTIONAL","Attributes":"UNCACHEAB |
This file contains hidden or 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
| use std::io::BufRead; | |
| macro_rules! readlines { | |
| ($cnt:expr) => { | |
| { | |
| let stdin = std::io::stdin(); | |
| let mut handle = stdin.lock(); | |
| let mut result = Vec::new(); | |
| for i in 0..$cnt{ | |
| let mut buf = String::new(); |
This file contains hidden or 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
| [package] | |
| name = "sideloading_dll" | |
| version = "0.1.0" | |
| authors = ["segfo <[email protected]>"] | |
| edition = "2018" | |
| [lib] | |
| name = "sideloading" | |
| path = "src/lib.rs" | |
| crate-type = ["dylib"] |
This file contains hidden or 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 time | |
| cnt=0 | |
| while True: | |
| cnt+=1 | |
| if cnt > 5: | |
| break | |
| time.sleep(1) | |
| print("python: "+str(cnt)) | |
This file contains hidden or 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
| use std::marker::PhantomData; | |
| use serde_derive::{Serialize,Deserialize}; | |
| use serde::de::DeserializeOwned; | |
| struct TomlConfigDeserializer<T>{ | |
| _t:PhantomData<T> | |
| } | |
| use std::fs::OpenOptions; | |
| use std::io::{BufReader,prelude::*}; |
NewerOlder