Skip to content

Instantly share code, notes, and snippets.

@NRGLine4Sec
NRGLine4Sec / CredentialManager.cs
Created July 19, 2021 15:21 — forked from meziantou/CredentialManager.cs
Using the Windows Credential API (CredRead, CredWrite, CredDelete, CredEnumerate).
// The most up to date version is available
// on GitHub: https://github.com/meziantou/Meziantou.Framework/tree/master/src/Meziantou.Framework.Win32.CredentialManager
// NuGet package: https://www.nuget.org/packages/Meziantou.Framework.Win32.CredentialManager/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;
@NRGLine4Sec
NRGLine4Sec / dl_all_orgs_repos_in_zip.sh
Last active May 16, 2022 09:38
Download all repos from one Github organisation in zip archive
#!/bin/bash
tmp_file_urls='/tmp/list_urls_repos_github'
out_dir='/tmp/output_directory_for_zip/'
github_organisation='example'
curl --silent "https://api.github.com/orgs/"$github_organisation"/repos?per_page=1000" | jq '.[].url' > "$tmp_file_urls"
while read line; do
repo_name="$(awk -F'/' '{print $6}' <<<"$line")"
@NRGLine4Sec
NRGLine4Sec / dl_all_user_repos_in_zip.sh
Last active May 16, 2022 09:39
Download all repos from one Github user in zip archive
#!/bin/bash
tmp_file_urls='/tmp/list_urls_repos_github'
out_dir='/tmp/output_directory_for_zip/'
github_user='example'
curl --silent "https://api.github.com/users/"$github_user"/repos?per_page=1000" | jq '.[].url' > "$tmp_file_urls"
while read line; do
repo_name="$(awk -F'/' '{print $6}' <<< "$line")"
@NRGLine4Sec
NRGLine4Sec / openvas-automate.sh
Created April 18, 2019 07:32 — forked from mgeeky/openvas-automate.sh
OpenVAS automation script.
#!/bin/bash
#
# OpenVAS automation script.
# Mariusz B. / mgeeky, '17
# v0.2
#
trap ctrl_c INT
# --- CONFIGURATION ---