Skip to content

Instantly share code, notes, and snippets.

View nasirhm's full-sized avatar
😀
404 Not Found

Nasir Hussain nasirhm

😀
404 Not Found
View GitHub Profile
// $ go mod init
// $ go mod tidy
// --
// It'll install the x86 ASM package.
// It traverses the directory for subdirectories and all the files.
// It determines the sections (it only decodes the executable section) and the assembly of each file into a CSV.
package main
import (
a.out: file format mach-o 64-bit x86-64
Contents of section __TEXT,__text:
100003d70 554889e5 4883ec40 488b0581 02000048 [email protected]
100003d80 8b004889 45f84889 7dd84889 75d0488d ..H.E.H.}.H.u.H.
100003d90 3dd30100 00b000e8 a2010000 c745cc00 =............E..
100003da0 00000083 7dcc020f 8dde0000 00c745c8 ....}.........E.
100003db0 00000000 837dc803 0f8db100 00004863 .....}........Hc
100003dc0 4dcc488d 45e0486b c90c4801 c848634d M.H.E.Hk..H..HcM
100003dd0 c8c70488 00000000 c745c400 00000083 .........E......
100003de0 7dc4020f 8d540000 00488b45 d848634d }....T...H.E.HcM
This file has been truncated, but you can view the full file.
{
"index": 10,
"cve_id": "CVE-2011-0990",
"cwe_id": [
"CWE-362"
],
"cve_language": "C",
"cve_description": "Race condition in the FastCopy optimization in the Array.Copy method in metadata/icall.c in Mono, when Moonlight 2.x before 2.4.1 or 3.x before 3.99.3 is used, allows remote attackers to trigger a buffer overflow and modify internal data structures, and cause a denial of service (plugin crash) or corrupt the internal state of the security manager, via a crafted media file in which a thread makes a change after a type check but before a copy action.",
"cvss": "4.8",
@nasirhm
nasirhm / btrfs-nixos-install.sh
Last active August 24, 2023 08:55 — forked from alcol80/btrfs-nixos-install.sh
nixos install (boot + btrfs root + LUKS setup)
mkfs.vfat -n BOOT /dev/sda3
mkfs.btrfs -L root /dev/sda1
cryptsetup luksFormat /dev/sda1
# Enter the Password.
cryptsetup luksOpen /dev/sda1 enc-pv
# After Opening the Disk, Open Gparted and Format /dev/sda1 to btrfs for the btrfs logic block.

Keybase proof

I hereby claim:

  • I am nasirhm on github.
  • I am nasirhm (https://keybase.io/nasirhm) on keybase.
  • I have a public key ASCEEnAY_ClM4zALAb9qPyzFPSdDtnC1yUYsNcnrw2shugo

To claim this, I am signing this object:

`var currentTime = new Date().getTime();
while(currentTime + 4500 >= new Date().getTime()){
agent.add(new Card({All Params}))
}
agent.setFollowupEvent('Delay1')
agent.add("Now Working")`
@nasirhm
nasirhm / gist:1dd2ad31e585b350b7a82b6c36a67cec
Created March 17, 2020 13:11
CloudFunctionDialogflowError
async function someFunction(agent) {
try {
let result_a;
let result_b = [];
let param1 = agent.parameters.from; // From Dialgflow
let param2 = agent.parameters.to; //From Dialogflow
let param3 = agent.parameters.on; // From Dialogflow
let myBody = {
---
- name: Installing Jenkins by Ansible automation
hosts: codein_fedora_boxes
tasks:
- name: Downloading Jenkins from yum repo
get_url:
url: "https://pkg.jenkins.io/redhat-stable/jenkins.repo"
dest: /etc/yum.repos.d/jenkins.repo
become: true
---
- name: Installing Jenkins by Ansible automation
hosts: localhost
tasks:
- name: Installing Java 8
yum:
name: "java-1.8.0-openjdk"
state: present
become: true
- name: Correcting the Alternative to Change Default Java
---
- name: First Playbook for CodeIn
hosts: codein_fedora_boxes
tasks:
- name: Display
debug:
msg: "My Name is Nasir Hussain, It's First Ansible task and It's awesome"
#Remember to add codein_fedora_boxes or any type of host on your ansible hosts file located : /etc/ansible/hosts use nano to edit