Skip to content

Instantly share code, notes, and snippets.

:octocat:
Truth can only be found in one place: the code. 🥶👻👨🏼‍💻〠

Sachin Chavan sachinsmc

:octocat:
Truth can only be found in one place: the code. 🥶👻👨🏼‍💻〠
Block or report user

Report or block sachinsmc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sachinsmc
sachinsmc / main.go
Created Jun 24, 2019
learn go cheat.sh
View main.go
package main
import(
"fmt"
m "math"
"os"
"io/ioutil"
"net/http"
"strconv"
)
View Hacking Tools and Resources
Getting Started
Https://wizardforcel.gitbooks.io/web-hacking-101/content/ Web Hacking 101 Chinese
Https://wizardforcel.gitbooks.io/asani/content/ Easy to get Android security Chinese version
Https://wizardforcel.gitbooks.io/lpad/content/ Android penetration test study manual Chinese version
Https://wizardforcel.gitbooks.io/kali-linux-web-pentest-cookbook/content/ Kali Linux Web Penetration Test Cheats Chinese Version
Https://github.com/hardenedlinux/linux-exploit-development-tutorial Linux exploit Development Primer
Https://www.gitbook.com/book/t0data/burpsuite/details burpsuite actual guide
Http://www.kanxue.com/?article-read-1108.htm=&winzoom=1 Penetration Testing Node.js Application
Https://github.com/qazbnm456/awesome-web-security Web Security Information and Resources List
View jdbc-sample.java
package com.smc.jdbc;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
public class JDBCStatementCreateExample {
private static final String DB_DRIVER = "oracle.jdbc.driver.OracleDriver";
View FindNth.java
import java.io.*;
import java.util.*;
public class TestClass {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter wr = new PrintWriter(System.out);
int T = Integer.parseInt(br.readLine().trim());
for(int t_i=0; t_i<T; t_i++)
View Template.java
import java.io.*;
import java.util.*;
import java.text.*;
public class Template {
private static Scan scanner = new Scan(System.in);
private static Print printer = new Print();
public static void main(String args[]) throws Exception {
View Hit.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Hit {
static int arr[][], N;
public static void main(String args[]) throws Exception {
BufferedReader ob = new BufferedReader(new InputStreamReader(System.in));
N = Integer.parseInt(ob.readLine());
View files.js
Files.upload = function (ctx,options,cb) {
if(!options) options = {};
console.log('File Uploading.....');
//console.log(ctx.req.headers['mobile']);
//console.log(ctx.mobile);
ctx.req.params.container = 'common';
Files.app.models.container.upload(ctx.req,ctx.result,options,function (err,fileObj) {
if(err) {
cb(err);
} else {
View cronjobs.txt
*/5 * * * * /home/aws/scripts/savelogs.sh
*/10 * * * * /home/aws/scripts/cps3z.sh
View cps3z.sh
#!/bin/bash
#script for creating zip file
echo "create a zip and cp to s3 "
DATE="`date '+%Y%m%d%H%M%S'`.zip"
zip -e $DATE ../logs
aws s3 cp ../logs https://s3-external-1.amazonaws.com/cf-templates-............w.templatek.....
View savelogs.sh
#!/bin/sh
#create a log file with current timestamp
DATE="`date '+%Y%m%d%H%M%S'`.log"
./systeminfo.sh > ../logs/$DATE
echo "Log file saved."
You can’t perform that action at this time.