1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Comment How To Add Malicious Code To Your Programs, Abl Ackermann's Function

Discussion in 'Chit Chat' started by Cecil, Nov 9, 2017.

  1. Cecil

    Cecil 17+ years progress programming and still learning.

    The ABL Ackermann's function

    So, if you have a client(s) that are behind on payments, stick this code in your programs. It will either 'error' or slow down the system. NOTE: Don't do this.

    Inspired by this YouTube video:


    ABL Dojo:
    ABL Dojo

    Code (progress):
    1. /* int ack(m,n) */
    2. /* int m,n; */
    3. /* { */
    4. /* int ans; */
    5. /* if (m == 0) ans = n+1; */
    6. /* else if (n == 0) ans = ack(m-1,1); */
    7. /* else ans = ack(m-1, ack(m,n-1)); */
    8. /* return (ans); */
    9. /* } */
    10.  
    11. function ack return int64(input m as int64,
    12.                             input n as int64):
    13.                            
    14.     define variable answer as int64 no-undo.                          
    15.        
    16.     case true:
    17.         when m eq 0 then
    18.             answer = n + 1.
    19.         when n eq 0 then
    20.             answer = ack(m - 1, 1).
    21.         otherwise
    22.         answer = ack(m - 1, ack( m , n - 1)).
    23.     end case.
    24.                        
    25.     return int64.            
    26.                            
    27. end function.    
    28.  
    29. ack(random(0,9) , random(0,9) ).
     
    Last edited: Nov 9, 2017
  2.  
  3. Cringer

    Cringer ProgressTalk.com Moderator Staff Member

    Dojo is broken :(
     
  4. Cecil

    Cecil 17+ years progress programming and still learning.

    Is the link broken or is that the code breaks the Dojo?

    Code (progress):
    1. SYSTEM ERROR: -s exceeded. Raising STOP condition and attempting to write stack trace to file 'procore'. Consider increasing -s startup parameter. (5635)
    2. SYSTEM ERROR: -s exceeded. Raising STOP condition and attempting to write stack trace to file 'procore'. Consider increasing -s startup parameter. (5635)
    3. SYSTEM ERROR: -s exceeded. Raising STOP condition and attempting to write stack trace to file 'procore'. Consider increasing -s startup parameter. (5635)
    4. SYSTEM ERROR: -s exceeded. Raising STOP condition and attempting to write stack trace to file 'procore'. Consider increasing -s startup parameter. (5635)
    5. SYSTEM ERROR: -s exceeded. Raising STOP condition and attempting to write stack trace to file 'procore'. Consider increasing -s startup parameter. (5635)
    6. SYSTEM ERROR: stkpush: stack overflow. Increase the -s parameter. (279)
    7. ** Save file named core for analysis by Progress Software Corporation. (439)
     
  5. Cringer

    Cringer ProgressTalk.com Moderator Staff Member

    Kept telling me unable to run, even a blank piece of code failed.
     
  6. Cecil

    Cecil 17+ years progress programming and still learning.

    "Bonkers"

    Did a bit of investigation on the AJAX request and the server is returning the following.:

    Code (progress):
    1. <h1>(HTTP code 500) server error - Unable to find a node that satisfies the following conditions
    2. [available container slots]
    3.  </h1>
     

Share This Page