Skip to content

Instantly share code, notes, and snippets.

View namnamir's full-sized avatar
...ing

Ali namnamir

...ing
View GitHub Profile
@namnamir
namnamir / Jalali_Date_API.js
Last active October 18, 2021 10:36
This function gets a date and convert it into a Jalali (Persian) date including all possible formats. It also lets the user to convert Farsi digits to Latin ones.
// Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
// options:
// weekday -> [long | short | narrow]
// era -> [long | short | narrow]
// timeZoneName -> [long | short]
//
// year -> [numeric | 2-digit]
// month -> [numeric | 2-digit | long | short | narrow]
// day -> [numeric | 2-digit]
@namnamir
namnamir / nessus_plugin_11936_parser.py
Last active July 3, 2020 13:42
The plugin 11936 of Nessus doesn't give a structured format to be able to go through large number of hosts. This script helps to parse the data, and convert it in to a new CSV file. It also categories operating systems.
# Version 1.0
# Copyleft
#
# Ali Nikouei
# July 2020
# this script parses the CSV output of the plugin 11936 of Nessus professional
# https://community.tenable.com/s/article/Operating-System-identification-using-Plugin-11936
## How to use it:
@namnamir
namnamir / nessus_filter_by_host_info.js
Last active July 3, 2020 13:15
Parse Nessus HTML report to get the list of live hosts details (OS, MAC Address, IP Address, NetBIOS Name, DNS Name, etc.). It is because Nessus filter doesn't have any criteria to filter the findings based on Host Information.
// Version 1.0
// Copyleft
//
// Ali Nikouei
// July 2020
// take a look at this one as well; it may help
// https://community.tenable.com/s/article/Operating-System-identification-using-Plugin-11936
@namnamir
namnamir / ssl.conf
Last active January 20, 2020 08:48
Best practice SSL configuration for Apache 2
# Protocols to be enabled/diabled
##### CHOSE ONE OF THEM #####
# 1- Requires Apache 2.4.36 & OpenSSL 1.1.1
SSLProtocol -all +TLSv1.3 +TLSv1.2
# 2- If there is Apache 2.4.29 & OpenSSL 1.1.1
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
# Enable HTTP/2, if available
Protocols h2 http/1.1