Skip to content

Instantly share code, notes, and snippets.

View geega's full-sized avatar
🇺🇦

Svyatoslav Varpikhovsky geega

🇺🇦
View GitHub Profile
@geega
geega / nodejs-base64.es6
Last active November 25, 2018 10:31
Simple example for encode and decode base64 hash
let base64Data=Buffer.from("I love JS!").toString('base64'); //SSBsb3ZlIEpTIQ==
let decodedData=Buffer.from(base64Data, 'base64').toString('utf8'); // I love JS!
Penetration testing sample test cases (test scenarios):
Remember this is not functional testing. In Pentest your goal is to find security holes in the system. Below are some generic test cases and not necessarily applicable for all applications.
1) Check if web application is able to identify spam attacks on contact forms used in the website.
2) Proxy server – Check if network traffic is monitored by proxy appliances. Proxy server make it difficult for hackers to get internal details of the network thus protecting the system from external attacks.
3) Spam email filters – Verify if incoming and outgoing email traffic is filtered and unsolicited emails are blocked. Many email clients come with in-build spam filters which needs to be configured as per your needs. These configuration rules can be applied on email headers, subject or body.
4) Firewall – Make sure entire network or computers are protected with Firewall. Firewall can be a software or hardware to block unauthorized access to system. Firewall can p
.idea/
docker-compose.yml
### macOS template
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
#!/usr/bin/env perl
# Copyright (c) 2015 Sergey Lyubka
# All rights reserved
use Encode;
my $dir = "/Users/$ENV{USER}/.Trash";
sub read_file($) { local $/; open FD, $_[0] or die $_[0]; binmode FD; <FD>; }
# show images list
$ docker images
# show containers list
$ docker container ls
@geega
geega / linux_help.sh
Last active January 10, 2018 06:04
Linux help command
#Count files in directory
$ find DIR_NAME -type f | wc -l
#Change owner for all files
$ chown -R username:groupname *
#delete all files from directory by ext
$ find . -name "*.bak" -type f -delete
#Show storage info
@geega
geega / gist:3e61caf4f7a4d53f8bc606c10394539e
Created November 11, 2017 15:17 — forked from gin1314/gist:2342328
ffmpeg: transcode a 4:3 to 16:9 aspect ratio with padding
-vf "pad=ih*16/9:ih:(ow-iw)/2:(oh-ih)/2,scale=640:360"
@geega
geega / gist:a8cc5c4bbc8496be3eb7345182ca3f22
Last active October 16, 2017 15:31
Copy ssh public key to remote server
$ ssh-copy-id username@remote_host
@geega
geega / gist:34258920519899999b22cd18177cbd13
Last active August 6, 2017 18:35
How use of ob_start() in php
<?php
ob_start();
echo("Hello world!");
$output = ob_get_contents();
ob_end_clean();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);