Skip to content

Instantly share code, notes, and snippets.

View roblabla's full-sized avatar
🌅
Kernel Dev'ing.

Robin Lambertz roblabla

🌅
Kernel Dev'ing.
View GitHub Profile
@roblabla
roblabla / error.log
Last active July 17, 2019 18:58
reproducer
[roblabla@roblab kfs]$ cargo script test.rs
Updating crates.io index
Compiling test v0.1.0 (/home/roblabla/.cargo/script-cache/file-test-5e1527e420b8259e)
error[E0308]: mismatched types
--> test.rs:18:5
|
18 | ForceSend(wrapper);
| ^^^^^^^^^ one type is more general than the other
|
= note: expected type `std::ops::FnOnce<(&mut Test, &mut [u8])>`
//! Service Manager
//!
//! Services are system processes running in the background which wait for
//! incoming requests. When a process wants to communicate with a service, it
//! first needs to get a handle to the named service, and then it can communicate
//! with the service via inter-process communication (each service has a name up
//! to 7 characters followed by a \0).
//!
//! Handles for services are retrieved from the service manager port, "sm:", and
//! are released via svcCloseHandle or when a process is terminated or crashes.
From 80831c0d3902e2d7b8ed975bce8eacf6d3ccb4dc Mon Sep 17 00:00:00 2001
From: roblabla <unfiltered@roblab.la>
Date: Wed, 29 May 2019 19:36:44 +0200
Subject: [PATCH] Add darcula support
---
Ghidra/Framework/Docking/Module.manifest | 1 +
Ghidra/Framework/Docking/build.gradle | 1 +
.../src/main/java/docking/widgets/AbstractGCellRenderer.java | 5 +++--
.../src/main/java/docking/widgets/filter/FilterTextField.java | 2 +-
diff --cc kernel/src/ipc/session.rs
index 09a760fb,09a760fb..82744708
--- a/kernel/src/ipc/session.rs
+++ b/kernel/src/ipc/session.rs
@@@ -30,11 -30,11 +30,12 @@@ use crate::process::ThreadStruct
use core::sync::atomic::{AtomicUsize, Ordering};
use core::slice;
use byteorder::{LE, ByteOrder};
--use crate::paging::{MappingAccessRights, process_memory::ProcessMemory};
++use crate::paging::{MappingAccessRights, process_memory::ProcessMemory, PAGE_SIZE};
#include <string.h>
#include <stdio.h>
#include <switch.h>
#define GET_INFO(a, b, c, d) do { \
rc = svcGetInfo(a, b, c, d); \
if (rc) { \
printf("Error: %x\n", rc); \
return 1; \
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
:ENCLU is vexMode=0 & byte=0x0f; byte=0x01; byte=0xd7 {
if ( EAX != 0x0 ) goto <leaf_1>;
enclu_ereport( RBX, RCX, RDX );
goto <done>;
<leaf_1>
if ( EAX != 0x1 ) goto <leaf_2>;
RAX = enclu_egetkey( RBX, RCX );
use rand::Rng;
use sha2::Digest;
use rayon::prelude::*;
fn main() {
let spinner = indicatif::ProgressBar::new_spinner();
spinner.set_draw_target(indicatif::ProgressDrawTarget::stdout());
spinner.set_style(indicatif::ProgressStyle::default_spinner().template("[{elapsed_precise}] {pos:>7} {spinner} {msg}"));
loop {
let s = rand::thread_rng()