Skip to content

Instantly share code, notes, and snippets.

Risks of Information Leakage through Remote Code Coverage Services

In the realm of Go programming, code coverage reporting tools such as codecov and coveralls have gained significant popularity for assessing code coverage. These services operate remotely and necessitate the submission of coverage profiles (in the form of cover.out files) to their servers. While this is generally unproblematic for open source projects, a word of caution is warranted for closed source projects. The act of sharing your coverage profile can inadvertently disclose critical information about your proprietary source code. The coverage profile files contain an enumeration of all source code files accompanied by their directory structures. This seemingly innocuous information has the potential to be exploited in two ways:

  • Reverse Engineering: Adversaries could leverage the available directory structure and file list to reverse engineer your project. This could readily e
@GlaceCoding
GlaceCoding / 42bh-days-left.user.js
Last active May 11, 2022 20:18
View days left on intra
// ==UserScript==
// @name 42BH-days-left
// @namespace https://gist.github.com/GlaceCoding/6d189078c3c49fb0e6e69314601fbe4f
// @version 0.4
// @description Blackholes days left
// @author GlaceCoding
// @match https://profile.intra.42.fr/
// @match https://profile.intra.42.fr/users/*
// @icon https://www.google.com/s2/favicons?domain=42.fr
// @downloadURL https://gist.github.com/GlaceCoding/6d189078c3c49fb0e6e69314601fbe4f/raw/42bh-days-left.user.js
@samdoran
samdoran / aerohive.md
Last active May 19, 2024 00:46
Configuring Aerohive access points using the CLI

Aerohive

Initial setup

  1. Reset to factory defaults

     reset config bootstrap
     reset config
    

    The username is admin and the password is aerohive or Aerohive1.

@linderd
linderd / README.md
Last active March 13, 2024 19:06 — forked from timlinux/README.md
Linux on Thinkpad P14s Gen2 AMD / T14 Gen2 AMD

Linux (Fedora 35) on a Thinkpad P14s [T14] Gen2 AMD

These are my installation-tricks and notes for running Linux on a 2021 Thinkpad P14s Gen2 with AMD Ryzen 7 5850U. It should also be suitable for the Thinkpad T14 Gen2 AMD as they are technically the same modell.
Meanwhile there is also a good test on youtube and an entry in the arch-wiki, which also comments some points mentioned here.

Detailed specs

Shipped:

@njhowell
njhowell / ubuntu-2004.json
Created June 24, 2020 12:39
Packer files
{
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "{{ user `ram` }}" ],
[ "modifyvm", "{{.Name}}", "--vram", "36" ],
[ "modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ]
],
"guest_os_type": "Ubuntu_64",
@goujonbe
goujonbe / main.go
Last active June 20, 2020 18:19
A TCP port scanner that uses goroutines and Channels
package main
import (
"fmt"
"net"
"sort"
)
func worker(ports, results chan int) {
for p := range ports {
@janeczku
janeczku / rancher-argocd.md
Created June 10, 2020 14:10
How to register Rancher managed Kubernetes clusters in Argo CD

How to register Rancher managed Kubernetes clusters in Argo CD

Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.

Hint: If you are just looking for the solution scroll to the bottom of this page.

Why do i get an error when running argocd cluster add?

Service Account tokens and the Rancher authentication proxy

@BlueMountainsIO
BlueMountainsIO / http_example.lua
Last active January 26, 2020 00:28
[Onset Server] HTTP request examples.
function test_get()
local r = http_create()
http_set_resolver_protocol(r, "any")
http_set_protocol(r, "https")
http_set_host(r, "postman-echo.com")
http_set_port(r, 443)
http_set_verifymode(r, "verify_peer")
http_set_target(r, "/get?foo=bar&onset=nice")
http_set_verb(r, "get")
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active June 26, 2024 08:42
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
# Fortement inspiré de cet article: http://rabexc.org/posts/docker-networking
# Tester les performances réseaux de ses conteneurs docker
# avec docker-proxy
docker run -it --rm --name=iperf3-server -p 10000:5201 networkstatic/iperf3 -s
docker inspect --format "{{ .NetworkSettings.IPAddress }}" iperf3-server
iperf3 -c 172.17.0.2 ⇒ 37gbs
iperf3 -c localhost -p 10000
# désactiver docker-proxy
vi /etc/docker/daemon.json