Guest User

Untitled

a guest
May 29th, 2026
101
0
Never
4
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.04 KB | Source Code | 0 0
  1. :: %timeSince% %TIME% [%DATE% [part whole]]
  2. :: input  - hh:mm:ss.cc [Day MM/DD/YYYY [integer integer]]
  3. :: output - [Wwks, ][Dday, ][Hhrs, ][Mmin, ]S.Csec
  4. :: returns time lapsed from %TIME% [%DATE%] to present in TS_ or if given
  5. :: part/whole will return estimate of time remaining to completion in TR_.
  6. :: raw time and day info for given(1) and current(2) are also available.
  7. :: TM1,TM2=# of centiseconds since last midnight.
  8. :: DY1,DY2=# of days since noon on January 1, 4713 BCE (Julian calendar).
  9. :: usage:
  10. :: SET "startTime=%TIME%" or "startTime=%TIME% %DATE%" before event then:
  11. :: %timeSince% %startTime%                      - for current elapsed time.
  12. :: %timeSince% %startTime% %partCnt% %wholeCnt% - to estimate by count.
  13. :: %timeSince% %startTime% %partKb%  %wholeKb%  - to estimate by size.
  14. ::
  15. SET timeSince=FOR %%# IN (1 2)DO IF %%#==2 (%=                                  'v0.2 2018/08/06 =%%\n%
  16. %= =%SET res=^& SET var=TS_%=                                                   'res=result,var=TS_=time elapsed since start time =%%\n%
  17. %= =%SET/A p=t=t1=tm1=t2=tm2=d=d1=dy1=d2=dy2=y=z=0%= p=counter for parameters,y=part,z=whole =%%\n%
  18. %=  t=t2-t1=target time,t1/t2=adjusted start/current time,tm1/tm2=raw start/current time (in centiseconds)=%%\n%
  19. %=  d=d2-d1=target day, d1/d2=adjusted start/current day, dy1/dy2=raw start/current day  (Julian calendar)=%%\n%
  20. %= =%IF "!inp:~1,1!"==":" SET inp=0!inp!%=                                      'add leading zero if needed =%%\n%
  21. %= =%FOR %%@ IN ("!inp!" "!TIME: =0! !DATE!")DO (SET/A p+=1%=                   'convert input and current time/day =%%\n%
  22. %=    =%FOR /F "tokens=1-10 delims=:./ " %%A IN ("%%~@")DO IF "%%D" NEQ "" (%=  'separate string,check for TIME =%%\n%
  23. %=       =%SET/A"tm!p!=t!p!=(((1%%A*60)+1%%B)*60+1%%C)*100+1%%D-36610100"%=     'convert time to centiseconds =%%\n%
  24. %=       =%IF "%%H" NEQ "" (SET/A mm=100%%F%%100,dd=100%%G%%100,yy=10000%%H%%10000%= 'check for DATE,extract MM,DD,YYYY =%%\n%
  25. %=          =%SET/A"dy!p!=d!p!=!dd!-32075+1461*(!yy!+4800+(!mm!-14)/12)/4+367*(!mm!-2-(!mm!-14)/12*12)/12-3*((!yy!+4900+(!mm!-14)/12)/100)/4")%\n%
  26. %=       =%IF "%%J" NEQ "" SET/A y=%%I,z=%%J))%=                  'convert Gregorian to Julian,snag part/whole parameters if available =%%\n%
  27. %= =%IF !t1! GEQ !t2! SET/A t2+=8640000,d2-=1%=                   'if start>=current we've past midnight,convert 1day=8640000cs =%%\n%
  28. %= =%IF !d1! EQU 0 SET d2=0%=                                     'if no start date clear current date =%%\n%
  29. %= =%SET/A t=t2-t1,d=d2-d1%=                                      'target time/day =%%\n%
  30. %= =%FOR %%A IN (1 2 3)DO IF !z! GTR 9999999 SET/A y/=10,z/=10%=  'reduce part/whole to 7 digits =%%\n%
  31. %= =%IF !y! LSS 1 SET y=1%=                                       'and calculate time remaining from part/whole ratio =%%\n%
  32. %= =%IF !z! NEQ 0 SET/A"t=(z-y)*100/y*((d*8640000+t)/100),d=t/8640000,t=t%%8640000"^& SET var=TR_%\n%
  33. %= =%SET/A w=d/7,d=d%%7,h=t%%8640000/360000,m=t%%360000/6000,s=t%%6000/100,c=t%%100%\n%
  34. %= =%IF !c! LEQ 9 SET c=0!c!%=                                    'reduce centiseconds to months,weeks,days,hours,minutes,seconds =%%\n%
  35. %= =%IF !w! GTR 0 SET res=!w!wks, %=                              'w=weeks =%%\n%
  36. %= =%IF !d! GTR 0 SET res=!res!!d!day, %=                         'd=days =%%\n%
  37. %= =%IF !h! GTR 0 SET res=!res!!h!hrs, %=                         'h=hours =%%\n%
  38. %= =%IF !m! GTR 0 SET res=!res!!m!min, %=                         'm=minutes =%%\n%
  39. %= =%SET res=!var!=!res!!s!.!c!sec%=                              's=seconds,c=centiseconds =%%\n%
  40. %= =%SET res=!res!" "tm1=!tm1!" "tm2=!tm2!" "dy1=!dy1!" "dy2=!dy2!%= 'quote-separated queue of return variables =%%\n%
  41. %= =%FOR /F "tokens=*" %%A IN (^""!res!"^")DO ENDLOCAL^& FOR %%B IN (%%A)DO SET %%B%= 'exit & cycle through return queue =%%\n%
  42. )ELSE SETLOCAL EnableDelayedExpansion^& SET inp=
  43.  
  44. %timeSince% 21:05:32.00 Day 09/18/2017
  45. %timeSince% 20:34:12.00 Day 08/06/2018 5 10 'ratio of 1/2 means remainingTime=elapsedTime
  46. ECHO timeSince v0.1 created %TS_% ago.
  47. ECHO timeSince v0.2 created %TR_% ago.
  48.  
Tags: batch
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • Gewexyt
    19 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment