Skip to content

Instantly share code, notes, and snippets.

View ryanbekabe's full-sized avatar
💭
Cuckoo Sandbox for identify Malware, JupyterLab for Machine Learning

ryanbekabe

💭
Cuckoo Sandbox for identify Malware, JupyterLab for Machine Learning
View GitHub Profile
(function ($) {
$.fn.DuplicateWindow = function () {
var localStorageTimeout = (5) * 1000; // 15,000 milliseconds = 15 seconds.
var localStorageResetInterval = (1/2) * 1000; // 10,000 milliseconds = 10 seconds.
var localStorageTabKey = 'my-application-browser-tab'; //source: https://www.jqueryscript.net/other/check-duplicate-browser-tab-window.html
var sessionStorageGuidKey = 'browser-tab-guid'; //dep: https://code.jquery.com/jquery-3.3.1.slim.min.js
var ItemType = {
Session: 1,
Local: 2
@ryanbekabe
ryanbekabe / Apache_A_Plus_Grade_SSL.conf
Created January 11, 2021 06:37
Apache A Plus Grade SSL Let's Encrypt
<VirtualHost *:80>
ServerName www.rek.my.id
ServerAlias rek.my.id
ServerAdmin bekabeipa@gmail.com
DocumentRoot /var/www/html
<Directory /var/www/html>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
@ryanbekabe
ryanbekabe / Cipher_Suites_List.txt
Created January 10, 2021 09:16
Cipher Suites List
https://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/210533-SSL-Cipher-Strength-Details.html
ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD
ECDHE-ECDSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AESGCM(256) Mac=AEAD
ECDHE-RSA-AES256-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA384
ECDHE-ECDSA-AES256-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA384
ECDHE-RSA-AES256-SHA SSLv3 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA1
ECDHE-ECDSA-AES256-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA1
SRP-DSS-AES-256-CBC-SHA SSLv3 Kx=SRP Au=DSS Enc=AES(256) Mac=SHA1
SRP-RSA-AES-256-CBC-SHA SSLv3 Kx=SRP Au=RSA Enc=AES(256) Mac=SHA1
SRP-AES-256-CBC-SHA SSLv3 Kx=SRP Au=SRP Enc=AES(256) Mac=SHA1
@ryanbekabe
ryanbekabe / Apache_vHost_SSL_GoDaddy_Grade_A.conf
Created January 7, 2021 16:18
Apache vHost SSL GoDaddy Grade A
#https://www.ssllabs.com/ssltest/analyze.html?d=prblm.com
#Server version: Apache/2.4.6 (CentOS)
#Server built: Nov 16 2020 16:18:20
#OpenSSL 1.0.2k-fips 26 Jan 2017
#/etc/httpd/conf/httpd.conf
#Include /etc/httpd/conf/prblmssl.conf
#/etc/httpd/conf/prblmssl.conf
#https://github.com/narbehaj/ssl-checker
#https://github.com/TKCERT/testssl.sh-webfrontend
#https://www.sslshopper.com/ssl-checker.html#hostname=prblm.com
---
version: '2'
services:
jupyter:
image: jupyter/scipy-notebook
container_name: jupyter
command: start.sh jupyter lab --LabApp.token='*******************' --LabApp.allow_remote_access='True' --LabApp.allow_origin='*'
restart: always
/*CREATE TABLE IF NOT EXISTS `product` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`product_name` varchar(200) DEFAULT NULL,
`product_price` int(11) DEFAULT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
*/
var mysql = require('mysql');
var con = mysql.createConnection({
@ryanbekabe
ryanbekabe / python_flask_ssl.py
Created October 12, 2020 01:00
Pyton Flask with SSL Let's Encrypt
#Pyton Flask with SSL Let's Encrypt
#Source: https://bits.mdminhazulhaque.io/python/run-flask-app-with-let's-encrypt-ssl-certificate.html
import requests
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=['GET'])
def serve():
return "Hello world", 200
<?php
echo 'example:<br/> ping.rhs.im/nslookup.php?cek=rhs.im<br/>';
#$output = shell_exec('ping -c 4 '.$_GET['cek']);
$output = shell_exec('nslookup -q=txt _acme-challenge.'.$_GET['cek']);
echo "<br/>----<br/><pre>$output</pre>";
?>
#!/usr/bin/python
# https://gist.github.com/bortzmeyer/1284249
# https://www.cnpython.com/qa/53070
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
<html>
<head>
<script src='https://meet.jit.si/external_api.js'></script>
</head>
<body>
<h1>Hello</h1>
<button id="start" type="button">Start</button>
<div id="jitsi-container">
</div>